Garbage collection is an important technique used for automatic reallocation of memory. The new JDK 9 is a project that requires implementation of the Java SE 9 platform. It is defined in the Java community as the JSR 379 process and serves as the key to implementing the JEP 2.0 proposal.
One of the important ideas is to find the ideal and the most optimized method for memory allocation. We will discuss different garbage collector algorithms in this article. The important and proven technique of Parallel GC will be explained here as well while discussing concepts such as parallelism, heap sizing, and G1 collector facilities.
Different failures will also be discussed here, and then, further details of the new garbage collection mechanism will be explained.