Java Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 6.00

Garbage Collection and the gc() Method

This chapter describes the garbage collection supported provided by Java. Topics include unused objects, the JVM automatic garbage collection process, the garbage collection method gc() on the default Runtime object.

Garbage Collection and Unused Objects

The Automated Garbage Collection Process

gc() - The Garbage Collection Method

Example Program of Using the gc() Method

Dr. Herong Yang, updated in 2008
Garbage Collection and the gc() Method