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 a CAS Operation in Java ?

How remove Method is Implemented in a HashMap in Java ?

What is a Filter in JSP ?

What is the Difference Between StringBuffer and StringBuilder in ...

What is the Difference Between Abstract Class and Interface in Ja ...