What Does Garbage Collection (GC) Mean?

Garbage collection (GC) is a dynamic approach to automatic memory management and heap allocation that processes and identifies dead memory blocks and reallocates storage for reuse. The primary purpose of garbage collection is to reduce memory leaks.

Techopedia Explains Garbage Collection (GC)

Garbage collection’s dynamic approach to automatic heap allocation addresses common and costly errors that often result in real world program defects when undetected.