When garbage collector invokes object?s finalize() method?

Answer Posted / rana.ankur

garbage collector ie demon thread invokes finalize method
to give the last chance to object to save it resorces and
data

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can i use a nonsynchronized hashtable?

2127


Difference between class#getinstance() and new operator ?

664


What is array sorting in java?

565


What is the purpose of garbage collection in java, and when is it used?

583


What do you mean by local class?

534






What is difference between path and classpath in java?

499


What is wrapper class example?

553


Can a class with private constructor be extended?

502


How many types of the indexof method are there for strings?

501


What is the use of static methods?

614


What do you mean by platform independence of Java?

544


Is ruby built on java?

543


What is the final access modifier in java?

625


Can we override the private methods?

542


String class is defined under which package in java?

637