- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Java (JVM) Memory Types
Java Virtual Machine is a program/software which takes Java bytecode (.class files)
and converts the byte code (line by line) into machine understandable code.
JVM contains a module known as a class loader. A class loader in JVM loads, links and, initializes a program. It−
- Loads the class into the memory.
- Verifies the byte code instructions.
- Allocates memory for the program.
The memory in the JVM is divided into five different parts namely− Method area− The method area stores the class code − code of the variables and methods.
Heap − The Java objects are created in this area.
Java Stack− While running methods the results are stored in the stack memory. PC registers− These contain the address of the instructions of the methods.
Native method stacks− Similar to Java stack, native methods are executed on the Native method stacks.
- Related Articles
- Java (JVM) memory model
- How many types of memory areas are allocated by JVM in java?
- Where does Array stored in JVM memory in Java?
- Verification in Java (JVM)
- JVM shutdown hook in Java
- What is Cache Memory? (Functions and Types of Cache Memory)
- What is JVM, Java virtual machine?
- Explain Java Virtual Machine (JVM) Architecture
- What is Java Virtual Machine (JVM)?
- Java Virtual Machine (JVM) Stack Area
- Understanding memory types in Arduino Uno
- Get the JVM uptime from RuntimeMXBean in Java
- What is Unified JVM Logging in Java 9?
- What are Java JVM Run-time Data Areas?
- Difference between JDK, JRE and JVM in Java

Advertisements