Memory Allocation in Java
A typical Java process deals with the RAM, Non RAM memory and Registers. It’s useful to understand how a Java process accesses and manages these memories: Registers - the fastest storage in your computer are Registers. Why so ? Because Registers are present inside the processor itself. Registers cannot be accessed directly by a process. RAM - The memory allocated to a process resides in the RAM. There are two types of allocation that happens: Heap memory space - The general purpose pool of memory where all Java objects reside....