If I explicitly call the finalizer method of an object (I assume I can do this) will it ever be called again by the gc? Can I call the finalizer method multiple times?
Hi Damien, I don�t know why would you call finalize() explicitly? JVM remembers if finalize() was called and won't call it again for the same object. If and when gc comes around? I think the bottom line is: you can not count on gc() nor finalize(). [ July 11, 2003: Message edited by: Alex Radomski ]
The method finalize() is method as any other. So you can call it OO-times. Plus it will be called by garbage collector when the object is no longer referenced.
Would anybody like some fudge? I made it an hour ago. And it goes well with a tiny ad ...
a bit of art, as a gift, the permaculture playing cards