The Artima Developer Community
Sponsored Link

finalization of statics

Advertisement

Advertisement

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.

Message:

finalization of statics

Posted by Vadim Tropashko on 20 Jan 1999, 3:59 PM

This was initially asked at com.lang.java.programmer in
the thread about servlets, but it is actually about lifetime
of static variables. Do all the static variables are permanently
pinned in the method area so that they are never garbage
collected? If they are than this is a memory leak in dynamically
extended program. If they are disposed together with class, then
the value of static variable doesn't persist through the
lifetime of JVM, - a fact somewhat difficult to accept.

I failed to watch my class (that was loaded with object
class loader) to be garbage collected, so I cannot prove one
or the other.



Replies:

Sponsored Links



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