On page 439, K&B , in finalize () method you could write a code that passes a reference to the object in Q back to another object thus making it uneligible for Garbage Collection.
Pls. write a code snippet so that i can understand it .
Also i want to if there is a print statement in the finalize() method
but we don't know whether the method will ever be invoked so while choosing the alternative shall we go with the one including the print of the finalize().
There was 1 Q of this in Dan's Exam.
Mohit Agarwal
Would Be
SCJP.
"The will to win is worthless if you do not have the will to prepare"