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.If an object is being destroyed by the GC then its finalize() method is guaranteed to be called.
About Question com.enthuware.ets.scjp.v6.2.274 :
Moderators: Site Manager, fjwalraven
About Question com.enthuware.ets.scjp.v6.2.274 :
-
- Site Admin
- Posts: 10046
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.274 :
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!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 49 guests