- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
How JVM works?

Following are the key components and their responsibility in JVM.
Classloader − Loads the class file into the JVM.
Class Area − Storage areas for a class elements structure like fields, method data, code of method etc.
Heap − Runtime storage allocation for objects.
Stack − Storage for local variables and partial results. A stack contains frames and allocates one for each thread. Once a thread gets completed, this frame also gets destroyed. It also plays roles in method invocation and returns.
PC Registers − Program Counter Registers contains the address of an instruction that JVM is currently executing.
Execution Engine − It has a virtual processor, interpreter to interpret bytecode instructions one by one and a JIT, just in time compiler.
Native method stack − It contains all the native methods used by the application.
- Related Articles
- JVM Stacks
- How Web Works?
- Java (JVM) memory model
- Java (JVM) Memory Types
- Verification in Java (JVM)
- JVM shutdown hook in Java
- How MySQL DATEDIFF() function works?
- How scriptblock works in PowerShell?
- How "getElementByID" works in JavaScript?
- Explain how a rocket works.
- How does digital thermometer works?
- What is JVM, Java virtual machine?
- Is JVM a compiler or interpreter?
- Explain Java Virtual Machine (JVM) Architecture
- What is Java Virtual Machine (JVM)?
