- Oracle. Java Garbage Collection Basics.
This tutorial covers the basics of how Garbage Collection works with the Hotspot JVM. It explains mark-and-sweep, mark-and-compact, and generational collection. It further explains how to monitor the garbage collection process using Visual VM, and which garabage collectors are available in the Java SE 7 Hotspot JVM.