Further Reading for the Interested Reader
This article presented a brief introduction to how garbage collection works in the Java HotSpot VM. It introduced the notion of generational garbage collection, described the way the young generation works in the Java HotSpot VM, gave an overview of the three different garbage collectors that are available, and indicated for which situation each of them is appropriate.
Find more resources related to this topic at the following Web sites:
For an informative introduction to garbage collection, R. E. Jones' Garbage Collection: Algorithms for Automatic Dynamic Memory Management covers all the techniques mentioned in this article.
The author is grateful to Miriam Kadansky and Peter Kessler for their many helpful comments on this article.
References[JVMS2 1999] T. Lindholm and F. Yellin. The Java Virtual Machine Specification—Second Edition. Addison-Wesley, 1999.