The Artima Developer Community
Sponsored Link

Legacy Design Forum
Finalization and Cleanup



This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Is there magic in the Garbage Collector?

Posted by Burk on May 23, 2001 at 8:01 AM

I'm studying to take the SCJP2 exam and ran into an interesting (I think) question. Only sublclasses and classes in the same package are supposed to be able to call a protected method, so how does the Java Garbage Collector call finalize when the signature is "protected finalize() throws Throwable"?


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us