i want to call destructor, when i close object, but i dont know how or when,.. I try whit finalize but its not calling. I dont know why
There is example code, i try with debugger but its help me..
class tralala(){
int i=0;
tralala(){
i=i+1;}
protected void finalize( ){
i=i-1;
}}
But it isnt call i dont know why. If anyone have got a suggestion plis help me. I am in the stuck at the moment, but i am not shure if java has got destructors.