The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2000

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:

RE: Garbage Collection

Posted by Kishori Sharan on August 09, 2000 at 2:40 PM

Hi
There are two functions to do garbage collection
System.gc()
Runtime.getRuntime().gc()
But you cannot force JVM to do the garbage collection at that time. You just give a hint to JVM for Garbage Collection calling gc() method . It all depends on JVM after gc() call.

Thanx
Kishori



Replies:

Sponsored Links



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