aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes finalize() method - a few questions and doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "finalize() method - a few questions and doubt" Watch "finalize() method - a few questions and doubt" New topic
Author

finalize() method - a few questions and doubt

Jason Mills
Greenhorn

Joined: Aug 22, 2006
Posts: 8
I am referring to 2 minutes drill points on finalize() from K & B ..."you can uneligibilize the object for GC from within the finalize() method"

since there is NO guarantee that this method will ever run,

A) why do you want to do this?
B) Let us I want to do this, can you tell me the situation where you want to do this?

I am now refering to second point in "Tricky litle finalize() Gotcha's

A) I quite did not get it, can you please eloborate?

Thanks a lot
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Object finalization and cleanup
Jason Mills
Greenhorn

Joined: Aug 22, 2006
Posts: 8
very helpful information.

Thanks
 
wood burning stoves
 
subject: finalize() method - a few questions and doubt