SlideShare a Scribd company logo
Working of
Java Virtual Machine
(JVM )
in Java ...
To write and execute a program
we need the following :
1) Editor – To type a program into, for example
notepad, notepad++ etc.
2) Compiler – To convert high level language
program into machine code Advanced Java
Training in Bangalore
3) Linker – To combine different program files
reference in your main program together.
4) Loader – To load the files from the secondary
storage device like Hard Disk, Flash Drive , CD into
RAM for execution. The loading is automatically
done when we execute our code.
5) Execution – Actual execution of the program
which is handled by OS(Operating System) &
processor.
Java code
compilation
and execution :
Java Training Center Bangalore
[1] Once we write a program , we have to save with
the class name.java.
[2] Once we execute a program .java file converts
into .class file
[3] JVM convert the .class file into machine code.
[4] JVM divide the memory into stack and memory
memory.
[4] Then JVM call the class loader , class loader go
back to the main class and find the all stack
members and load into heap memory.
[5] Again control go back java course in bangalore
to the JVM , it loads the all static members
into stack.
[6] Then it try to identifies the main method and
start the execution.
[7] If main method is not there , then it will
through the error and execution will stop.
[8] Once execution done JVM call garbage
collector to clear the memory.
Advanced java training in bangalore
What is JVM ?
JVM is known as Java Virtual
Machine.
It is the engine that executes the
Java Code.
It converts bytecode into machines
code. Java/j2ee classes bangalore
1) Java compiler produces code for a Virtual
Machine.
2) JVM compiled java code into bytecode. This
bytecode gets interpreted on machines
3) Between host system and Java Bytecode is an
intermediate language.
4) JVM is responsible for allocating a memory
space.
JVM
Architecture :
[1] Classloader:
Classloader www.aspendailynews.comis a
subsystem of JVM which is used to load the
class files into the memory.
Best core java training in bangalore
[2] Class Area(Method Area):
Class Area stores per-class structures such as
the runtime constant pool, fields and
methods, code for methods.
[3] Stack:
Java Stack stores frames.It holds local variables
and partial results, and plays a part in method
invocation and return.
[4] Native Method Stack:
Native Method Stack contains all the native
methods used in the application.
[5] Heap:
Heap is the runtime data area in which objects
are allocated and stored.
[6] Program Counter Register:
PC (program counter) register contains the address
of the Java virtual machine instruction currently
being executed.
[7] Execution Engine :
Execution Engine contains
i) A virtual processor
ii) Interpreter: Read bytecode stream then execute
the instructions.
iii) Just-In-Time(JIT) compiler: It is used to improve
the performance.
Working of
JVM:
The JVM performs following
works : Advanced java training in
bangalore
1) Loads the java code
2) Verifies the code
3) Executes the code
4) Provides runtime environment
Java is both compiled
and interpreted
language :
Compiler :
A compiler is a program which converts a
program from one level of language to another.
Example conversion of C++ program into
machine code. java/j2ee classes bangalore
The java compiler convert high level java code
into bytecode .
Interpreter :
A interpreter is a program which converts a
program at one level to another programming
language at the same level.
In Java , the JVM converts the bytecode into
the native machine code
Join
Infocampus Software Training Institute
for
Core & Advanced Java Training
and
get 100% career assistance with...
-> 4 Days free demo classes.
-> Complete practical session.
-> Work on real time project.
For the free demo classes ->
Call At :
9738001024
To know the syllabus of Java Course &
to getting a job easily :->
Enquire At :
http://www.infocampus.co.in/java-training-
bangalore.html
THANK
YOU

More Related Content

PPT
JVM- Java Virtual Machine
Manasvi Mehta
 
PPTX
Architecture diagram of jvm
home
 
PPT
Java-java virtual machine
Surbhi Panhalkar
 
PDF
Java Virtual Machine - Internal Architecture
subnesh
 
PPTX
QSpiders - Memory (JVM architecture)
Qspiders - Software Testing Training Institute
 
PPTX
Java Virtual Machine
profbnk
 
JVM- Java Virtual Machine
Manasvi Mehta
 
Architecture diagram of jvm
home
 
Java-java virtual machine
Surbhi Panhalkar
 
Java Virtual Machine - Internal Architecture
subnesh
 
QSpiders - Memory (JVM architecture)
Qspiders - Software Testing Training Institute
 
Java Virtual Machine
profbnk
 

What's hot (19)

PPTX
Java virtual machine
Dhanith Krishna
 
PPTX
Java byte code presentation
Mahnoor Hashmi
 
PDF
Java introduction with JVM architecture
atozknowledge .com
 
PPTX
Java virtual machine
Nikhil Sharma
 
PPTX
Java architecture
Rakesh
 
PDF
What's Inside a JVM?
Azul Systems Inc.
 
DOCX
JDK,JRE,JVM
Cognizant
 
PPTX
Jvm Architecture
ThirupathiReddy Vajjala
 
PPTX
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
PPT
Java Virtual Machine
Taha Malampatti
 
PDF
Jvm internal detail
Mohammad Faizan
 
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
PDF
JVM, JRE and Javac are the main part for the java program
siyaram ray
 
PPTX
Jdk,jre,jvm
Kritika Goel
 
PPTX
Inside the jvm
Benjamin Kim
 
PDF
The Real Thing: Java Virtual Machine
Frontech
 
Java virtual machine
Dhanith Krishna
 
Java byte code presentation
Mahnoor Hashmi
 
Java introduction with JVM architecture
atozknowledge .com
 
Java virtual machine
Nikhil Sharma
 
Java architecture
Rakesh
 
What's Inside a JVM?
Azul Systems Inc.
 
JDK,JRE,JVM
Cognizant
 
Jvm Architecture
ThirupathiReddy Vajjala
 
QSpiders - Jdk Jvm Jre and Jit
Qspiders - Software Testing Training Institute
 
Java Virtual Machine
Taha Malampatti
 
Jvm internal detail
Mohammad Faizan
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
shamnasain
 
JVM, JRE and Javac are the main part for the java program
siyaram ray
 
Jdk,jre,jvm
Kritika Goel
 
Inside the jvm
Benjamin Kim
 
The Real Thing: Java Virtual Machine
Frontech
 
Ad

Similar to Advanced java training in bangalore (20)

PDF
Java unit 1
Shipra Swati
 
PPT
Java2020 programming basics and fundamentals
swecsaleem
 
PPTX
Lecture java variable , data type, token
ChandrashekharSingh859453
 
PDF
JAVA Program Examples
Prof Chethan Raj C
 
PPTX
JAVA ARCHITECTURES PPT | "Mastering Java: A Comprehensive Guide to Core Conc...
vishnuprasath2603
 
PPTX
JAVA ARCHITECTURES PPT | "Mastering Java: A Comprehensive Guide to Core Conc...
vishnuprasath2603
 
PPTX
2 22CA026_Advance Java Programming_Data types and Operators.pptx
dolphiverma80
 
PDF
Download Free Java Notes PDF for Easy Learning
Amend Ed Tech
 
PPTX
Java introduction
The icfai university jaipur
 
PDF
JAVA for Every one
Satyam Pandey
 
DOCX
Java JDK.docx
Bornali Das
 
PDF
Ijaprr vol1-2-13-60-64tejinder
ijaprr_editor
 
PPTX
Java performance tuning
Jerry Kurian
 
PPTX
Java byte code & virtual machine
Laxman Puri
 
DOCX
Introduction to java programming tutorial
jackschitze
 
PPTX
java intro.pptx
MangaiyarkarasiDurai
 
PPT
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
Java unit 1
Shipra Swati
 
Java2020 programming basics and fundamentals
swecsaleem
 
Lecture java variable , data type, token
ChandrashekharSingh859453
 
JAVA Program Examples
Prof Chethan Raj C
 
JAVA ARCHITECTURES PPT | "Mastering Java: A Comprehensive Guide to Core Conc...
vishnuprasath2603
 
JAVA ARCHITECTURES PPT | "Mastering Java: A Comprehensive Guide to Core Conc...
vishnuprasath2603
 
2 22CA026_Advance Java Programming_Data types and Operators.pptx
dolphiverma80
 
Download Free Java Notes PDF for Easy Learning
Amend Ed Tech
 
Java introduction
The icfai university jaipur
 
JAVA for Every one
Satyam Pandey
 
Java JDK.docx
Bornali Das
 
Ijaprr vol1-2-13-60-64tejinder
ijaprr_editor
 
Java performance tuning
Jerry Kurian
 
Java byte code & virtual machine
Laxman Puri
 
Introduction to java programming tutorial
jackschitze
 
java intro.pptx
MangaiyarkarasiDurai
 
A begineers guide of JAVA - Getting Started
Rakesh Madugula
 
Ad

Recently uploaded (20)

PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
The Future of Artificial Intelligence (AI)
Mukul
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 

Advanced java training in bangalore

  • 1. Working of Java Virtual Machine (JVM ) in Java ...
  • 2. To write and execute a program we need the following : 1) Editor – To type a program into, for example notepad, notepad++ etc. 2) Compiler – To convert high level language program into machine code Advanced Java Training in Bangalore
  • 3. 3) Linker – To combine different program files reference in your main program together. 4) Loader – To load the files from the secondary storage device like Hard Disk, Flash Drive , CD into RAM for execution. The loading is automatically done when we execute our code. 5) Execution – Actual execution of the program which is handled by OS(Operating System) & processor.
  • 6. [1] Once we write a program , we have to save with the class name.java. [2] Once we execute a program .java file converts into .class file [3] JVM convert the .class file into machine code. [4] JVM divide the memory into stack and memory memory.
  • 7. [4] Then JVM call the class loader , class loader go back to the main class and find the all stack members and load into heap memory. [5] Again control go back java course in bangalore to the JVM , it loads the all static members into stack. [6] Then it try to identifies the main method and start the execution.
  • 8. [7] If main method is not there , then it will through the error and execution will stop. [8] Once execution done JVM call garbage collector to clear the memory.
  • 10. What is JVM ? JVM is known as Java Virtual Machine. It is the engine that executes the Java Code. It converts bytecode into machines code. Java/j2ee classes bangalore
  • 11. 1) Java compiler produces code for a Virtual Machine. 2) JVM compiled java code into bytecode. This bytecode gets interpreted on machines 3) Between host system and Java Bytecode is an intermediate language. 4) JVM is responsible for allocating a memory space.
  • 13. [1] Classloader: Classloader www.aspendailynews.comis a subsystem of JVM which is used to load the class files into the memory. Best core java training in bangalore [2] Class Area(Method Area): Class Area stores per-class structures such as the runtime constant pool, fields and methods, code for methods.
  • 14. [3] Stack: Java Stack stores frames.It holds local variables and partial results, and plays a part in method invocation and return. [4] Native Method Stack: Native Method Stack contains all the native methods used in the application. [5] Heap: Heap is the runtime data area in which objects are allocated and stored.
  • 15. [6] Program Counter Register: PC (program counter) register contains the address of the Java virtual machine instruction currently being executed. [7] Execution Engine : Execution Engine contains i) A virtual processor ii) Interpreter: Read bytecode stream then execute the instructions. iii) Just-In-Time(JIT) compiler: It is used to improve the performance.
  • 17. The JVM performs following works : Advanced java training in bangalore 1) Loads the java code 2) Verifies the code 3) Executes the code 4) Provides runtime environment
  • 18. Java is both compiled and interpreted language :
  • 19. Compiler : A compiler is a program which converts a program from one level of language to another. Example conversion of C++ program into machine code. java/j2ee classes bangalore The java compiler convert high level java code into bytecode .
  • 20. Interpreter : A interpreter is a program which converts a program at one level to another programming language at the same level. In Java , the JVM converts the bytecode into the native machine code
  • 21. Join Infocampus Software Training Institute for Core & Advanced Java Training and get 100% career assistance with... -> 4 Days free demo classes. -> Complete practical session. -> Work on real time project.
  • 22. For the free demo classes -> Call At : 9738001024 To know the syllabus of Java Course & to getting a job easily :-> Enquire At : http://www.infocampus.co.in/java-training- bangalore.html