Originally posted by Thomas Paul:
Think about it... finalize is always called before an object is gc'ed. that does not mean it is immediately called before gc. But there will NEVER be a case where an object is gc'ed and finalize is not called once before it happens.
Hi Thomas,
I don't quite get what you mean. Are you pointing out an error in my statement? Could you elaborate further?
My understanding is that when an object is gc'ed, its finalize method is called. Unless that is a resurrected object, in which case, its finalize method will not be called again.
Thanks.