Generational Garbage Collection Algorithms

In previous article I had discussed about generational garbage collection. In this article we are going to have a look on important garbage collection algorithms. Below are few important algorithms of generational garbage collection. Serial garbage collection algorithm Parallel garbage collection algorithm Concurrent mark and sweep algorithm Garbage first (G1) …

Automatic Resource Management in Java

Before java-1.7, developers were responsible to close external resources being utilized in code by using try-finally blocks. In JDK-1.7, functionality is provided to close resources automatically after use. It is called automatic resource management or try-with-resource. It makes source code more robust and boilerplate code may be avoided. Below is the …