Sunday, 18 August 2013

Java garbage collector execution

Java garbage collector execution

Finalize methods are invoked by the garbage collector prior to reclaiming
the memory occupied by the object, which has the finalize() method. This
means you do not know when the objects are going to be finalized.
Why we dont know when garbage collector will run. Does the founders of
Java also dont know this. There will be a specific condition or time (for
sure) when garbage collector will run.

No comments:

Post a Comment