+ 1
What is use of destructor?
how I use this i n Java ?
3 Answers
0
how use it
0
To manage the LIMITED memory on virtual machine, you can free the amount used by a var or object, this task is perform by java garbage collector by default.
To use you need override finalize method into the class.
@Override
protected void finalize() throws Throwable{
// You cath the idea
}