SlideShare a Scribd company logo
2
Most read
5
Most read
6
Most read
JAVA VIRTUAL MACHINE
Dhanith Krishna
Virtual Machines
A virtual machine (VM) is a software-based emulation of a
computer.
JVM executes Java byte code
Byte code is one byte op-codes followed by optional parameters
JVM platform is used by Python, Ruby etc
code execution component of the Java platform
JVM Architecture
•Better Security
•Portability
•Compile Once Run Anywhere
NEED FOR JVM
IS JVM for JAVA alone ?
• Compilers for other languages based on JVM exists
• Assemblers on JVM
•Erjang
•Rhino
•Free Pascal
•Quercus
•Jython
•NetRexx
•Jruby
•Jacl
• Loads class to memory
• Verification
• Allocation of static fields
• Linking
• Invocation of initialization codes
• Starting Main as a single thread
• Additional Threads are created using
Thread class
How class file works in JVM ?
JVM Architecture
Storage Management
Storage Management
Global Data – Global constant pool
Contains program constants and symbol table information
Per Thread Data – registers + stack + native stack
Heap – Dynamically allocated memory
Class File Format
JVM Instruction Set
•Load and store
•Arithmetic
•Type conversion
•Object creation and
manipulation
•Operand stack management
(push / pop)
•Control transfer (branching)
•Method invocation and
return
•Throwing exceptions
•Monitor-based concurrency
Java virtual machine

More Related Content

What's hot (19)

PPTX
Java Virtual Machine
profbnk
 
PPT
JVM- Java Virtual Machine
Manasvi Mehta
 
PPTX
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
PDF
What's Inside a JVM?
Azul Systems Inc.
 
PDF
The Real Thing: Java Virtual Machine
Frontech
 
PPTX
Inside the jvm
Benjamin Kim
 
DOCX
JDK,JRE,JVM
Cognizant
 
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
PPTX
Java architecture
Rakesh
 
PPTX
Jvm Architecture
ThirupathiReddy Vajjala
 
PPTX
Java byte code presentation
Mahnoor Hashmi
 
PDF
Java introduction with JVM architecture
atozknowledge .com
 
PDF
Basic difference between jdk,jre,jvm in advance java course
Preeti Agarwal
 
PPTX
Java JVM
KadarkaraiSelvam
 
PPTX
JAVA BYTE CODE
Javed Ahmed Samo
 
PDF
Advanced java-training-in-bangalore
siyaram ray
 
PPTX
Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...
Rhythm Suiwal
 
Java Virtual Machine
profbnk
 
JVM- Java Virtual Machine
Manasvi Mehta
 
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
What's Inside a JVM?
Azul Systems Inc.
 
The Real Thing: Java Virtual Machine
Frontech
 
Inside the jvm
Benjamin Kim
 
JDK,JRE,JVM
Cognizant
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
Java architecture
Rakesh
 
Jvm Architecture
ThirupathiReddy Vajjala
 
Java byte code presentation
Mahnoor Hashmi
 
Java introduction with JVM architecture
atozknowledge .com
 
Basic difference between jdk,jre,jvm in advance java course
Preeti Agarwal
 
JAVA BYTE CODE
Javed Ahmed Samo
 
Advanced java-training-in-bangalore
siyaram ray
 
Introduction of jvm|Java Training In Jaipur | Java Training Jaipur | Java Tra...
Rhythm Suiwal
 

Viewers also liked (17)

PDF
Understanding JVM
Aparna Chaudhary
 
PPT
Java Serialization
jeslie
 
PPTX
Java byte code & virtual machine
Laxman Puri
 
PPTX
Java bytecode and classes
yoavwix
 
PPTX
Java Multi Thead Programming
Nishant Mevawala
 
PDF
Threads concept in java
Muthukumaran Subramanian
 
PPT
Java And Multithreading
Shraddha
 
PPTX
Threads in JAVA
Haldia Institute of Technology
 
PPTX
Multithread Programing in Java
M. Raihan
 
ODP
Multithreading In Java
parag
 
PPTX
Java byte code in practice
Rafael Winterhalter
 
PPTX
Multithreading in java
Raghu nath
 
PDF
Introduction to Java Programming Language
jaimefrozr
 
PPT
Java multi threading
Raja Sekhar
 
PDF
2016 Travel Trends
Creative Lodging Solutions
 
PPT
Gi-Fi ppt presentation
Ankit Satnalika
 
PPTX
The Future of the Connected Traveler & Smart Travel Experience
Manoj Jasra
 
Understanding JVM
Aparna Chaudhary
 
Java Serialization
jeslie
 
Java byte code & virtual machine
Laxman Puri
 
Java bytecode and classes
yoavwix
 
Java Multi Thead Programming
Nishant Mevawala
 
Threads concept in java
Muthukumaran Subramanian
 
Java And Multithreading
Shraddha
 
Multithread Programing in Java
M. Raihan
 
Multithreading In Java
parag
 
Java byte code in practice
Rafael Winterhalter
 
Multithreading in java
Raghu nath
 
Introduction to Java Programming Language
jaimefrozr
 
Java multi threading
Raja Sekhar
 
2016 Travel Trends
Creative Lodging Solutions
 
Gi-Fi ppt presentation
Ankit Satnalika
 
The Future of the Connected Traveler & Smart Travel Experience
Manoj Jasra
 
Ad

Similar to Java virtual machine (20)

PPTX
Lecture java variable , data type, token
ChandrashekharSingh859453
 
PPTX
Android Training Chandigarh
Sheetal Sharma
 
PDF
Advanced java training in bangalore
siyaram ray
 
PPTX
JVM.pptx
ParvathiPPSGRKCW
 
PPT
introduction to java
Azaz Maverick
 
PPT
CS Lesson: Introduction to the Java virtual Machine
Katrin Becker
 
PDF
Ijaprr vol1-2-13-60-64tejinder
ijaprr_editor
 
PDF
JAVA AND ANDROID OS_PRESENTATION
Benjamin Agboola
 
PDF
A Brief study on JVM A Brief study on JVM
BRNSSPublicationHubI
 
PPT
Byte code jvm
myrajendra
 
PPTX
Dvm
Shivam Sharma
 
PDF
JVM Bytecodes
Anvay Patil
 
Lecture java variable , data type, token
ChandrashekharSingh859453
 
Android Training Chandigarh
Sheetal Sharma
 
Advanced java training in bangalore
siyaram ray
 
introduction to java
Azaz Maverick
 
CS Lesson: Introduction to the Java virtual Machine
Katrin Becker
 
Ijaprr vol1-2-13-60-64tejinder
ijaprr_editor
 
JAVA AND ANDROID OS_PRESENTATION
Benjamin Agboola
 
A Brief study on JVM A Brief study on JVM
BRNSSPublicationHubI
 
Byte code jvm
myrajendra
 
JVM Bytecodes
Anvay Patil
 
Ad

More from Dhanith Krishna (6)

PPTX
Anthocnet routing algorithm
Dhanith Krishna
 
PPTX
Study on Bitcoin
Dhanith Krishna
 
PPT
INDIAN LEGENDARY WRITERS
Dhanith Krishna
 
PPTX
DETECTING GASEOUS POLLUTANTS USING UNMANNED AERIAL VEHICLE (UAV)
Dhanith Krishna
 
PPTX
Design of Accident Detection and Alert System for Motor Cycles
Dhanith Krishna
 
PPTX
Exploration and implementation of next generation telepresence system
Dhanith Krishna
 
Anthocnet routing algorithm
Dhanith Krishna
 
Study on Bitcoin
Dhanith Krishna
 
INDIAN LEGENDARY WRITERS
Dhanith Krishna
 
DETECTING GASEOUS POLLUTANTS USING UNMANNED AERIAL VEHICLE (UAV)
Dhanith Krishna
 
Design of Accident Detection and Alert System for Motor Cycles
Dhanith Krishna
 
Exploration and implementation of next generation telepresence system
Dhanith Krishna
 

Recently uploaded (20)

PDF
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
PPTX
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPTX
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
PPTX
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
PPTX
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PDF
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
PDF
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PDF
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
PPTX
Hashing Introduction , hash functions and techniques
sailajam21
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PPTX
Depth First Search Algorithm in 🧠 DFS in Artificial Intelligence (AI)
rafeeqshaik212002
 
PPTX
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
PPTX
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
Element 11. ELECTRICITY safety and hazards
merrandomohandas
 
Unified_Cloud_Comm_Presentation anil singh ppt
anilsingh298751
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Introduction to Design of Machine Elements
PradeepKumarS27
 
Heart Bleed Bug - A case study (Course: Cryptography and Network Security)
Adri Jovin
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
美国电子版毕业证南卡罗莱纳大学上州分校水印成绩单USC学费发票定做学位证书编号怎么查
Taqyea
 
GitOps_Without_K8s_Training_detailed git repository
DanialHabibi2
 
GitOps_Repo_Structure for begeinner(Scaffolindg)
DanialHabibi2
 
Design Thinking basics for Engineers.pdf
CMR University
 
Ethics and Trustworthy AI in Healthcare – Governing Sensitive Data, Profiling...
AlqualsaDIResearchGr
 
Set Relation Function Practice session 24.05.2025.pdf
DrStephenStrange4
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
Hashing Introduction , hash functions and techniques
sailajam21
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
Depth First Search Algorithm in 🧠 DFS in Artificial Intelligence (AI)
rafeeqshaik212002
 
Product Development & DevelopmentLecture02.pptx
zeeshanwazir2
 
artificial intelligence applications in Geomatics
NawrasShatnawi1
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
Element 11. ELECTRICITY safety and hazards
merrandomohandas
 

Java virtual machine

  • 2. Virtual Machines A virtual machine (VM) is a software-based emulation of a computer. JVM executes Java byte code Byte code is one byte op-codes followed by optional parameters JVM platform is used by Python, Ruby etc code execution component of the Java platform
  • 4. IS JVM for JAVA alone ? • Compilers for other languages based on JVM exists • Assemblers on JVM •Erjang •Rhino •Free Pascal •Quercus •Jython •NetRexx •Jruby •Jacl
  • 5. • Loads class to memory • Verification • Allocation of static fields • Linking • Invocation of initialization codes • Starting Main as a single thread • Additional Threads are created using Thread class How class file works in JVM ?
  • 8. Storage Management Global Data – Global constant pool Contains program constants and symbol table information Per Thread Data – registers + stack + native stack Heap – Dynamically allocated memory
  • 10. JVM Instruction Set •Load and store •Arithmetic •Type conversion •Object creation and manipulation •Operand stack management (push / pop) •Control transfer (branching) •Method invocation and return •Throwing exceptions •Monitor-based concurrency