You are here: Home / Topics / What are Memory storages available with JVM?

What are Memory storages available with JVM?

Filed under: Java Interview Questions on 2024-10-25 06:55:36

JVM consists of a few memory storages as mentioned below:

JVM consists of a few memory storages as mentioned below:

Class(Method) Area: stores class-level data of every class such as the runtime constant pool, field, and method data, and the code for methods.

Heap: Objects are created or objects are stored. It is used to allocate memory to objects during run time.

Stack: stores data and partial results which will be needed while returning value for method and performing dynamic linking

Program Counter Register: stores the address of the Java virtual machine instruction currently being executed.

Native Method Stack: stores all the native methods used in the application..

About Author:
R
Ravi Chauhan     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.