[3090] in java-interest

home help back first fref pref prev next nref lref last post

Re: Finalize()

daemon@ATHENA.MIT.EDU (Michael Lorton)
Mon Oct 30 16:30:27 1995

Date: Mon, 30 Oct 1995 11:39:12 -0800
From: Michael Lorton <mlorton@eshop.com>
To: java-interest@java.Eng.Sun.COM
In-Reply-To: <9510280225.AA11904@bendenweyr.Eng.Sun.COM> (flar@bendenweyr.Eng.Sun.COM)


> > The final few sentences is this footnote are somewhat alarming.   
> > How can finalize() be used for ANYTHING if it isn't reliably called?
> 
> Since the finalize() method is called from the garbage collector and
> since the actions and timing of the garbage collector or implementation
> dependent, you shouldn't rely on any consistency from it to invoke
> your finalize methods.

So we can rest assured that finalize() *will* be called before the
garbage collector collects the object (which may be useful).  (I am
guessing here; somebody check me.) Is *everything* collected when the
process terminates?

M.

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post