DEVFYI - Developer Resource - FYI

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

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

194. 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 object is still reachable. However, an object's finalize() method may be invoked by other objects.

(Continued on next question...)

Other Interview Questions