Can an object's finalize() method be invoked while it is reachable

An object's finalize() method cannot be invoked by the garbage collector while the objectis still reachable. However, an object's finalize() method may be invoked by otherobjects.

Showing Answers 1 - 6 of 6 Answers

rin.amaru

  • Jun 5th, 2008
 

No , because finalize() method is being invoked just before the garbage collection and an object can not be garbage collected unless there is any live reference of that object i.e that object is reachable. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions