Posted On: Feb 22, 2018
The Garbage Collection in Java is a memory management process. In C/C++, the programmer is responsible for clearing the unused memory used by the objects. But in Java, the programmer need not take care of this unused memory as the garbage collector process automatically takes care of that process. This process mainly destroys the unused objects in the heap memory.
The garbage collection is an automatic process and is implemented in the JVM.
Never Miss an Articles from us.