SlideShare a Scribd company logo
Difference JDK,
JRE & JVM
Internal working
of JVM
PRESENTED BY
NAME:SHUBHAM GUPTA
UNIVERSITY ROLLNO:12000221054
BRANCH:INFORMATION TECHNOLOGY
DIFFERENCE JDK,JRE & JVM
JDK ( Java Development Kit )
 Java Development Kit can be considered as
the super-set of JRE. JDK includes all features
that JRE has and over and above it contains
development tools such like compiler, debugger
etc. (Java Development Kit) is a Kit that provides
the environment to develop and
execute(run) the Java program.
JDK is a kit(or package) that includes two things
 Development Tools(to provide an environment
to develop your java programs)
 JRE (to execute your java program).
JRE ( Java Runtime Environment )
 Java Runtime Environment (JRE) is within
which the java virtual machine actually
runs. JRE contains Java virtual Machine
and other files except development tools
(debugger and compiler). So developer
can run the source code in JRE but
he/she cannot develop and compile the
code.
JVM ( Java Virtual Machine )
 JVM (Java Virtual Machine) is a very
important part of both JDK and JRE because
it is contained or inbuilt in both. Whatever
Java program you run using JRE or JDK
goes into JVM and JVM is responsible for
executing the java program line by line,
hence it is also known as an interpreter
Interrelationship
INTERNAL WORKING OF
JVM(JAVA VIRTUAL MACHINE)
JAVA VIRTUAL MACHINE(JVM)
JVM becomes an instance of JRE at the runtime of a Java
program. It is widely known as a runtime interpreter.JVM
largely helps in the abstraction of inner implementation
from the programmers who make use of libraries for their
programs from JDK.
It is mainly responsible for three activities.
1. Loading
2. Linking
3. Initialization
WORKING OF JVM
 JVM(Java Virtual Machine) behaves as a run-time engine to run
Java applications. JVM calls the main method present in Java
code.
 Java Virtual machine(JVM) is a part of the JRE(Java Runtime
Environment).
 Java applications are WORA (Write Once Run Anywhere). This
means that we need to write the Java programs just once,
which we can run on different platforms without making
changes in the Java program.
 When we compile a .java file, the compiler generates the
.class files(contains byte-code) with the same names as that of
the class present in a .java file.
 When we run a .class file, it goes through various steps.
HOW JVM WORKS
PROCEDURE
• After reading .class file, class loader save the corresponding
byte code in the method area. Generally all JVMs have only
one method area which is shared across classes which holds
information related to each .class file.
• Heap is an integral part of JVM memory in which the
objects actually rests. JVM produces the Class object for
each .class file.
• Unlike Heap, Stack is used for storing temporary variables.
• PC-Registers used to keep exact information of all
instructions (which instruction is executing and which is
going to be executed).
• A native method used to access the runtime data of the JVM
(java virtual machine). Native Method interface enables java
code to call by the native applications (programs that are
specific to the hardware and OS).
THANK YOU

More Related Content

What's hot

What's hot (20)

Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVMJava Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Java Programming | Java Tutorial For Beginners | Java Training | Edureka
Java Programming | Java Tutorial For Beginners | Java Training | EdurekaJava Programming | Java Tutorial For Beginners | Java Training | Edureka
Java Programming | Java Tutorial For Beginners | Java Training | Edureka
 
Jdk,jre,jvm
Jdk,jre,jvmJdk,jre,jvm
Jdk,jre,jvm
 
Presentation on java
Presentation  on  javaPresentation  on  java
Presentation on java
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
 
Lecture - 2 Environment setup & JDK, JRE, JVM
Lecture - 2 Environment setup & JDK, JRE, JVMLecture - 2 Environment setup & JDK, JRE, JVM
Lecture - 2 Environment setup & JDK, JRE, JVM
 
Oops in java
Oops in javaOops in java
Oops in java
 
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
 
Java Development Kit (jdk)
Java Development Kit (jdk)Java Development Kit (jdk)
Java Development Kit (jdk)
 
Classes objects in java
Classes objects in javaClasses objects in java
Classes objects in java
 
Packages in java
Packages in javaPackages in java
Packages in java
 
Java Course 8: I/O, Files and Streams
Java Course 8: I/O, Files and StreamsJava Course 8: I/O, Files and Streams
Java Course 8: I/O, Files and Streams
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
 
Introduction to Java 11
Introduction to Java 11 Introduction to Java 11
Introduction to Java 11
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
 
Control statements in java
Control statements in javaControl statements in java
Control statements in java
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
 

Similar to Internal working JVM

JAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxJAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptx
Murugesh33
 
Javanotes ww8
Javanotes ww8Javanotes ww8
Javanotes ww8
kumar467
 

Similar to Internal working JVM (20)

Java JDK.docx
Java JDK.docxJava JDK.docx
Java JDK.docx
 
2. hello java
2. hello java2. hello java
2. hello java
 
JAVA Program Examples
JAVA Program ExamplesJAVA Program Examples
JAVA Program Examples
 
Basic difference between jdk,jre,jvm in advance java course
Basic difference between jdk,jre,jvm in advance java courseBasic difference between jdk,jre,jvm in advance java course
Basic difference between jdk,jre,jvm in advance java course
 
What is java
What is javaWhat is java
What is java
 
JAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptxJAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptx
 
JAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxJAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptx
 
Java Course In Thane,Mumbai
Java Course In Thane,MumbaiJava Course In Thane,Mumbai
Java Course In Thane,Mumbai
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Top 10 Important Core Java Interview questions and answers.pdf
Top 10 Important Core Java Interview questions and answers.pdfTop 10 Important Core Java Interview questions and answers.pdf
Top 10 Important Core Java Interview questions and answers.pdf
 
Basic Java I
Basic Java IBasic Java I
Basic Java I
 
Java -lec-1
Java -lec-1Java -lec-1
Java -lec-1
 
Learn Java Part 1
Learn Java Part 1Learn Java Part 1
Learn Java Part 1
 
Java ppt1
Java ppt1Java ppt1
Java ppt1
 
Java chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
 
JRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVAJRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVA
 
Unit1 JAVA.pptx
Unit1 JAVA.pptxUnit1 JAVA.pptx
Unit1 JAVA.pptx
 
Javanotes ww8
Javanotes ww8Javanotes ww8
Javanotes ww8
 
Java notes
Java notesJava notes
Java notes
 
Java ms harsha
Java ms harshaJava ms harsha
Java ms harsha
 

Recently uploaded

ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
Kamal Acharya
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 

Recently uploaded (20)

fluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerfluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answer
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Scaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageScaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltage
 
IT-601 Lecture Notes-UNIT-2.pdf Data Analysis
IT-601 Lecture Notes-UNIT-2.pdf Data AnalysisIT-601 Lecture Notes-UNIT-2.pdf Data Analysis
IT-601 Lecture Notes-UNIT-2.pdf Data Analysis
 
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
Explosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdfExplosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdf
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..pdf
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 

Internal working JVM

  • 1. Difference JDK, JRE & JVM Internal working of JVM PRESENTED BY NAME:SHUBHAM GUPTA UNIVERSITY ROLLNO:12000221054 BRANCH:INFORMATION TECHNOLOGY
  • 3. JDK ( Java Development Kit )  Java Development Kit can be considered as the super-set of JRE. JDK includes all features that JRE has and over and above it contains development tools such like compiler, debugger etc. (Java Development Kit) is a Kit that provides the environment to develop and execute(run) the Java program. JDK is a kit(or package) that includes two things  Development Tools(to provide an environment to develop your java programs)  JRE (to execute your java program).
  • 4. JRE ( Java Runtime Environment )  Java Runtime Environment (JRE) is within which the java virtual machine actually runs. JRE contains Java virtual Machine and other files except development tools (debugger and compiler). So developer can run the source code in JRE but he/she cannot develop and compile the code.
  • 5. JVM ( Java Virtual Machine )  JVM (Java Virtual Machine) is a very important part of both JDK and JRE because it is contained or inbuilt in both. Whatever Java program you run using JRE or JDK goes into JVM and JVM is responsible for executing the java program line by line, hence it is also known as an interpreter
  • 7. INTERNAL WORKING OF JVM(JAVA VIRTUAL MACHINE)
  • 8. JAVA VIRTUAL MACHINE(JVM) JVM becomes an instance of JRE at the runtime of a Java program. It is widely known as a runtime interpreter.JVM largely helps in the abstraction of inner implementation from the programmers who make use of libraries for their programs from JDK. It is mainly responsible for three activities. 1. Loading 2. Linking 3. Initialization
  • 9. WORKING OF JVM  JVM(Java Virtual Machine) behaves as a run-time engine to run Java applications. JVM calls the main method present in Java code.  Java Virtual machine(JVM) is a part of the JRE(Java Runtime Environment).  Java applications are WORA (Write Once Run Anywhere). This means that we need to write the Java programs just once, which we can run on different platforms without making changes in the Java program.  When we compile a .java file, the compiler generates the .class files(contains byte-code) with the same names as that of the class present in a .java file.  When we run a .class file, it goes through various steps.
  • 11. PROCEDURE • After reading .class file, class loader save the corresponding byte code in the method area. Generally all JVMs have only one method area which is shared across classes which holds information related to each .class file. • Heap is an integral part of JVM memory in which the objects actually rests. JVM produces the Class object for each .class file. • Unlike Heap, Stack is used for storing temporary variables. • PC-Registers used to keep exact information of all instructions (which instruction is executing and which is going to be executed). • A native method used to access the runtime data of the JVM (java virtual machine). Native Method interface enables java code to call by the native applications (programs that are specific to the hardware and OS).