How Does Garbage Collection Work in Java ?

Java has an automated process called Garbage Collector for Memory Management. It is a daemon in JVM that monitors the memory usage and performs memory cleanup. Once JVM is low on memory, GC process finds the unused objects that are not referenced by other objects. These unused objects are cleaned up by Garbage Collector daemon in JVM.



You May Interest

What is the Difference Between init-param and context-param in JS ...

What is the Use of Interceptor Design Pattern in Java ?

What is the Difference Between a Class and an Object in Java ?

What is Externalizable Interface in Java ?

What are the Different States of a Thread in Java ?