I am new to Java and confused about the garbage collector in Java. What does it actually do and when does it comes into action. Please describe some of the properties of the
Garbage collection refers to the process of automatically freeing memory on the heap by deleting objects that are no longer reachable in your program.
The heap is a memory which is referred to as the free store, represents a large pool of unused memory allocated to your Java application.