That's not true, since we can manually call finalize() as many times we want, and the GC will call it again when it thinks it's appropiate (just once).The finalize method will never be called more than once on an object.
About Question com.enthuware.ets.scjp.v6.2.186 :
Moderators: Site Manager, fjwalraven
About Question com.enthuware.ets.scjp.v6.2.186 :
I think this answer is incorrect.
-
- Site Admin
- Posts: 10064
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.186 :
In the context of the question, it is implied that it is talking about automatic calls from the JVM and not manual programmer made calls.
But you are right, it may cause confusion and so this will be made more clear asap.
thank you for your feedback!
But you are right, it may cause confusion and so this will be made more clear asap.
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: Bing [Bot] and 55 guests