aspose file tools
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 Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Finalizers in GC?" Watch "Finalizers in GC?" New topic

Finalizers in GC?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9889

Hi Guys,

We say that our program should never rely on finalizer 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:
subject: Finalizers in GC?