- Minor GC happens when the young generation (a subset of the heap where new objects are allocated) is filled up. It’s usually fast and focuses on clearing short-lived objects.
- Full GC involves examining the entire heap, including both young and old generations, to identify and remove objects that are no longer reachable from any references in the program.