Understanding Garbage Collection in Java

Garbage Collection(GC) which is a Daemon thread is invoked by the JVM to find all the unused objects and destroy them to free up the 'Heap Space'