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

How Can We Analyze the Dependencies in Java Classes and Packages ...

What are the Advantages of Using JSP in Web Architecture ?

What are the Differences Between Comparable and Comparator in Jav ...

What is Difference Between Include Directive and Include Action o ...

What is Thread Starvation in Java ?