A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java Interview Guide
this week in the
Programmer Certification (SCJP/OCPJP)
Finalizers in GC?
Joined: Sep 26, 2006
Nov 21, 2006 21:07:00
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?
SCWCD 1.4 - Hints for you
, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joined: Aug 03, 2002
Nov 21, 2006 22:23:00
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
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?
Jdiscuss question of the day - April 3, 2005
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015