Wednesday, February 11, 2009

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

Question :Can an object's finalize() method be invoked while it is reachable?
Answer :An object's finalize() method cannot be invoked by the garbage collector while the object is still reachable. However, an object's finalize() method may be invoked by other objects.

No comments: