Re: finalize()
- From: Eric Sosman <Eric.Sosman@xxxxxxx>
- Date: Fri, 09 Feb 2007 17:17:23 -0500
cy wrote On 02/09/07 17:04,:
Is there a way to make sure that finalization always occurs; that an
object's finalize() method is always called before program exit?
There are ways to improve the chances the finalization
will occur, but as far as I know there is no way to be
completely sure.
Why do you care? Are you a C++ convert who thinks
finalizers are destructors? They're not, and can't act
as destructor substitutes -- not reliably, anyhow.
--
Eric.Sosman@xxxxxxx
.
- Follow-Ups:
- Re: finalize()
- From: cy
- Re: finalize()
- From: grasp06110
- Re: finalize()
- References:
- finalize()
- From: cy
- finalize()
- Prev by Date: jdk1.6: "javac -nowarn" does not work, "to some extent"
- Next by Date: Re: Does object pooling *ever* make sense?
- Previous by thread: finalize()
- Next by thread: Re: finalize()
- Index(es):