Ankur Patel's Java Blog
Showing posts with label
garbage collector
.
Show all posts
Showing posts with label
garbage collector
.
Show all posts
23 September 2010
How can I force garbage collection to take place???
You can't force it but you call System.gc(), which is a "hint" to the runtime engine that now might be a good time to run the GC. But garbage collection using this method is not guaranteed to be done immediately.
Older Posts
Home
Subscribe to:
Posts (Atom)