The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

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

Message:

response to senthil

Posted by Jose Botella on March 27, 2001 at 5:16 PM

> what will happen to the values in the garbage collector when the garbage collector is called ?

I suppose you mean the literals value that are declared in an object which is been recycled by the g.c.

They are hold as entries of the appropiated type in the constant pool and they stay there until the class is unloded. This happens according with the JVM specification "if and only if the class loader that loaded the class is found unrechable"




Replies:

Sponsored Links



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