Posts

Showing posts with the label Memory Allocation in Java

Java Memory Allocation.

Image
              Memory Management in Java  Memory allocation  is a process by which computer programs and services are assigned with physical or virtual  memory  space.  In Java, memory management is the process of allocation and de-allocation of objects, called Memory management. Java does memory management automatically. Java uses an automatic memory management system called a  garbage collector . Thus, we are not required to implement memory management logic in our application. Java memory management divides into two major parts: JVM Memory Structure Working of the Garbage Collector     Types of Memory areas allocated by the JVM:                      JVM creates various run time data areas in a heap. These areas are used during the program execution. The memory areas are destroyed when JVM exits, whereas the data areas are destroyed when ...