--

Java Heap Memory

This picture illustrates how JVM internal memory looks like. Any newly created object first get into “Young Gen” and slowly moved to “Old Gen”. We can customize the size dynamically using-XX command as mentioned in the image.

--

--