Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.274 :

Posted: Thu Mar 01, 2012 3:55 am
by ETS User
If an object is being destroyed by the GC then its finalize() method is guaranteed to be called.
No. It is only guaranteed to be called the first time the object is being destroyed, it can happen many times since the finalize() method can bring the object back to life.

Re: About Question com.enthuware.ets.scjp.v6.2.274 :

Posted: Thu Mar 01, 2012 8:57 pm
by admin
You are right. The option has now been tweaked to say, "If an object is being destroyed by the GC then its finalize() method is guaranteed to have been called."

thank you for your feedback!