+ 1

What is use of destructor?

how I use this i n Java ?

31st Mar 2017, 8:15 AM
Vinod Karadiya
Vinod Karadiya - avatar
3 Answers
0
how use it
31st Mar 2017, 8:26 AM
Vinod Karadiya
Vinod Karadiya - avatar
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 }
31st Mar 2017, 10:34 AM
nextco
nextco - avatar