wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Finalizers in GC? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Finalizers in GC?" Watch "Finalizers in GC?" New topic
Author

Finalizers in GC?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

Hi Guys,

We say that our program should never rely on finalizer blocks....so why is that we override finalizer blocks?? What is the true meaning of overriding finalize?? Anyone on this?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
The best description of Object.finalize() I have seen is in the API for class Object. If you read it carefully, I believe it will answer your questions.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Finalizers in GC?