DEVFYI - Developer Resource - FYI

Under what conditions is an object's finalize() method invoked by the garbage collector?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

304. Under what conditions is an object's finalize() method invoked by the garbage collector?

The garbage collector invokes an object's finalize() method when it detects that the object has become unreachable.

(Continued on next question...)

Other Interview Questions