How does Garbage Collector work?

How does GC work, Minor GC, Major GC, Full GC

A Garbage Collector is a Java program which tracked the referenced (live) objects and allowed them to keep in the heap memory whereas the memory of the unreferenced (dead) objects is reclaimed and reused for future object allocation. To understand it more practically we have to take some pictorial examples of JVM object creation and management cycle. Let’s … Read more