Java Garbage collection

Java garbage collection is an automatic process to manage the runtime memory used by programs. By doing it automatic JVM relieves the programmer of the overhead of assigning and freeing up memory resources in a program.

Garbage collection works by employing several GC algorithm e.g. Mark and Sweep. There are different kinds of garbage collector available in Java to collect different area of heap memory e.g. you have serial, parallel and concurrent garbage collector in Java.

These tutorials are to understand the basics of Java garbage collection and how it works.

Related Tags

Tutorials

HowToDoInJava

A blog about Java and related technologies, the best practices, algorithms, and interview questions.