Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
71 views
8 pages
Differences Between JDK, JRE and JVM
Differences between JDK, JRE and JVM
Uploaded by
Viraat Sewraj
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Differences between JDK, JRE and JVM For Later
Download
Save
Save Differences between JDK, JRE and JVM For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
71 views
8 pages
Differences Between JDK, JRE and JVM
Differences between JDK, JRE and JVM
Uploaded by
Viraat Sewraj
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Differences between JDK, JRE and JVM For Later
Carousel Previous
Carousel Next
Download
Save
Save Differences between JDK, JRE and JVM For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 8
Search
Fullscreen
oS GeeksforGeeks Data Structures Algorithms Interview Preparation Topic-wise Practice C++ Java Python Differences between JDK, JRE and JVM Difficulty Level: Easy © Last Updated : 10 Aug, 2021 Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (Java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc), and other tools needed in Java development. Now we need an environment to make a run of our program. Henceforth, JRE stands for “Java Runtime Environment" and may also be written as “Java RTE." The Java Runtime Environment provides the minimum requirements for executing a Java application; it consists of the Java Virtual Machine (JVM), core classes, and supporting files. Attention reader! Don't stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. Now let us discuss JVM, which stands out for java virtual machine. It is as follows * Aspecification where the working of Java Virtual Machine is specified. But implementation provider is independent to choose the algorithm. Its implementation has been provided by Sun and other companies * Animplementation is a computer program that meets the requirements of the JVM specification * Runtime Instance Whenever you write a java command on the command prompt to run the java class, an instance of JVM is createdBefore proceeding to the differences between JDK, JRE, and JVM, let us discuss them in brief first and interrelate with the image below being proposed SET OF LIBRARIES Eg -rt.jar etc. DEVELOPMENT JVM TOOLS Eg- javac, java, etc. OTHER FILES JRE JDK Don't get confused as we are going to discuss all of them one by one 1. JDK (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) is an installation package that provides an ivironment to only run(not develop) the java program(or application) onto your machine. JRE is only used by those who only want to run Java programs that are end-users of your system 3. 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. Now let us discuss components of JRE in order to understand the importance of it and to perceive how it actually works. For this let us discuss components. The components of JRE is as follows: 1, Deployment technologies, including deployment, Java Web Start, and Java Plug- in. User interface toolkits, including Abstract Window Toolkit (AWT), Swing, Java 2D, Accessibility, Image 1/0, Print Service, Sound, drag, and drop (DnD), and input N methods. @ . Integration libraries, including /nterface Definition Language (IDL), Java Database Connectivity (JDBC), Java Naming and Directory Interface (JNDI), Remote Method Invocation (RMI), Remote Method Invocation Over Internet Inter-Orb Protocol (RMI-IIOP), and scripting. Other base libraries, including international support, input/output (1/0), extension mechanism, Beans, Java Management Extensions (JMX), Java Native Interface S (NI), Math, Networking, Override Mechanism, Security, Serialization, and Java for XML Processing (XML JAXP). Lang and util base libraries, including (ang and util, management, versioning, zip, instrument, reflection, Collections, Concurrency Utilities, Java Archive (JAR), Logging, Preferences API, Ref Objects, and Regular Expressions. Java Virtual Machine (JVM), including Java HotSpot Client and Server Virtual o Machines. After having an adequate understanding of the components, now let us discuss the working of JRE. In order to understand how JRE works, let us consider an illustration below as follows:Illustration: Consider a java source file saved as ‘Example.java’. The file is compiled into a set of Byte Code that is stored ina “.class” file. Here it will be “Example.class”. Compile Sap Vv ss javac Example.class Vv Note: From above, media operation computing during the compile time can be in terpreted. The following actions occur at runtime as listed below: * Class Loader * Byte Code Verifier © Intrepreter* Execute the Byte Code * Make appropriate calls to the underlying hardware Now let us discuss in brief how JVM do works out. is as follows: JVM becomes an instance of JRE at the runtime of a Java program. Itis 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. * Loading * Linking * Initialization Similarly, now let us discuss the working of JRE which is as follows: + JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method present in a java code. JVM isa part of JRE (Java Runtime Environment). * Java applications are called WORA (Write Once Run Anywhere). This means a programmer can develop Java code on one system and can expect it to run on any other Java-enabled system without any adjustments. This is all possible because of JVM * When we compile a java file, .class files(contains byte-code) with the same class names present in ,java file are generated by the Java compiler. This .class file goes into various steps when we run it. These steps together describe the whole JVMJVM Language Classes Class Loader JVM Memory VM Languag Stacks Native Method Native Method This article is contributed by Krishna Bhatia. If you like GeeksforGeeks and would like Execution Engine to contribute, you can also write an article using write.geekstorgeeks.org or mail your article to
[email protected]
. See your article appearing on the GeeksforGeeks main page and help other Geeks. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above Like 0 Previous Next RECOMMENDED ARTICLES Page: 1 2 3 (11 Difference Between JDK and JRE in (] 5 Difference between Blue] and JDK Java 13 19, Feb21 20, Jun 20 Why Thread.stop(), Migration to Open JDK from OracleJDK Thread.suspend(, and 02 05, mar21 06 thread:resume() Methods are Deprecated After JDK 1.1 Version? 11,Jul21 013, HewsVM Works - jvm Architecture? ()7 Difference Between JVM and DYM 20, Oct 16 27, Dec 20 ()8_ Difference between iT and J¥M in 4, JREinJava Java 24, 0ct21 06, Feb21 Article Contributed By: eo GeeksforGeeks Vote for difficulty Current difficulty : Easy Easy Normal Medium = Hard Expert Improved By: solankimayank Article Tags: java-JVM, Difference Between, Java Practice Tags: Java Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here,Load Comments oS GeeksforGeeks Sth Floor, A-118, Sector-136, Noida, Uttar Pradesh - 201305
[email protected]
Company Learn ‘About Us Algorithms Careers Data Structures Privacy Policy Languages Contact Us CS Subjects Copyright Policy Video Tutorials Web Development Contribute Web Tutorials Write an Article HTML Write Interview Experience css Internships JavaScript leos Bootstrap @geeksforgeeks , Some rights reserved
You might also like
Programme Specification: BSC (Hons) Information Technology
PDF
No ratings yet
Programme Specification: BSC (Hons) Information Technology
11 pages
3 - JVM As An Interpreter and Emulator
PDF
No ratings yet
3 - JVM As An Interpreter and Emulator
34 pages
Cycle 2 - Weeks 3-4 - Differences JDK, JRE.. - PDF
PDF
No ratings yet
Cycle 2 - Weeks 3-4 - Differences JDK, JRE.. - PDF
4 pages
Difference Between JDK JRE and JVM
PDF
No ratings yet
Difference Between JDK JRE and JVM
10 pages
JDK Jre JVM
PDF
No ratings yet
JDK Jre JVM
4 pages
ITLBJ701 BACKEND USING JAVA
PDF
No ratings yet
ITLBJ701 BACKEND USING JAVA
8 pages
Difference Between JDK, JRE and JVM
PDF
No ratings yet
Difference Between JDK, JRE and JVM
4 pages
JDK Jre JVM
PDF
No ratings yet
JDK Jre JVM
47 pages
Difference Between JDK, JRE and JVM
PDF
No ratings yet
Difference Between JDK, JRE and JVM
4 pages
2 Java JVM, JDK and JRE
PDF
No ratings yet
2 Java JVM, JDK and JRE
21 pages
Difference Between JDK, JRE, and JVM
PDF
No ratings yet
Difference Between JDK, JRE, and JVM
4 pages
Java Language Basics
PDF
No ratings yet
Java Language Basics
79 pages
1.JDK, JRE, and JVM
PDF
No ratings yet
1.JDK, JRE, and JVM
7 pages
1.2. Java First Programm
PDF
No ratings yet
1.2. Java First Programm
8 pages
Java
PDF
No ratings yet
Java
187 pages
Assignment 3
PDF
No ratings yet
Assignment 3
7 pages
Important Question
PDF
100% (1)
Important Question
30 pages
OOP Lec2
PDF
No ratings yet
OOP Lec2
15 pages
OOPS NOTES 1 to 10
PDF
No ratings yet
OOPS NOTES 1 to 10
154 pages
OOPSJAVA_1_4_Notes_OKD
PDF
No ratings yet
OOPSJAVA_1_4_Notes_OKD
41 pages
JVM JRE JDK Data Types PDF
PDF
No ratings yet
JVM JRE JDK Data Types PDF
4 pages
JDK, JVM and JRE
PDF
No ratings yet
JDK, JVM and JRE
11 pages
UNIT 1
PDF
No ratings yet
UNIT 1
14 pages
KodNest- Assignment 3
PDF
No ratings yet
KodNest- Assignment 3
6 pages
Unit 1
PDF
No ratings yet
Unit 1
13 pages
Java Notes
PDF
No ratings yet
Java Notes
7 pages
Java Basics
PDF
No ratings yet
Java Basics
83 pages
What Is Java?
PDF
No ratings yet
What Is Java?
21 pages
4. JAVA ENVIRONMENT
PDF
No ratings yet
4. JAVA ENVIRONMENT
12 pages
JVM JRE and JDK
PDF
No ratings yet
JVM JRE and JDK
5 pages
Java Introduction
PDF
No ratings yet
Java Introduction
9 pages
Java
PDF
No ratings yet
Java
12 pages
chapter1[1]
PDF
No ratings yet
chapter1[1]
3 pages
Lecture
PDF
No ratings yet
Lecture
45 pages
Java Basics Variables OOP
PDF
No ratings yet
Java Basics Variables OOP
252 pages
Core Java Full Notes by kiran @satya technologies
PDF
No ratings yet
Core Java Full Notes by kiran @satya technologies
368 pages
Java Basics
PDF
No ratings yet
Java Basics
9 pages
Unit i(Core Java)
PDF
No ratings yet
Unit i(Core Java)
32 pages
JVM (Java Virtual Machine) Architecture
PDF
No ratings yet
JVM (Java Virtual Machine) Architecture
4 pages
Chapter 1: Get Started and Sip Your First Java Cup... (4.5 HRS) Chapter Objective
PDF
No ratings yet
Chapter 1: Get Started and Sip Your First Java Cup... (4.5 HRS) Chapter Objective
9 pages
L2JVM_JDK_and_JRE_in_Java
PDF
No ratings yet
L2JVM_JDK_and_JRE_in_Java
3 pages
Language Fudamentals(24-03-2025) (1)
PDF
No ratings yet
Language Fudamentals(24-03-2025) (1)
41 pages
Java Environment
PDF
No ratings yet
Java Environment
2 pages
1 Basics
PDF
No ratings yet
1 Basics
152 pages
Simple Simple Simple Simple Program Program Program Program of of of of Java Java Java Java
PDF
No ratings yet
Simple Simple Simple Simple Program Program Program Program of of of of Java Java Java Java
8 pages
JVM
PDF
No ratings yet
JVM
4 pages
JVM
PDF
No ratings yet
JVM
6 pages
Lecture 01 - Getting Started, Compilation, Execution, Byte Code, Machine Code, JDK, JRE, JVM, JIT
PDF
No ratings yet
Lecture 01 - Getting Started, Compilation, Execution, Byte Code, Machine Code, JDK, JRE, JVM, JIT
3 pages
ch1java
PDF
No ratings yet
ch1java
8 pages
Lecture 2
PDF
No ratings yet
Lecture 2
12 pages
Assignment Acp
PDF
No ratings yet
Assignment Acp
5 pages
Java JDK, JRE and JVM
PDF
No ratings yet
Java JDK, JRE and JVM
7 pages
JVM JRE JDK Program Exe Flow
PDF
No ratings yet
JVM JRE JDK Program Exe Flow
6 pages
Java Tutorial
PDF
75% (4)
Java Tutorial
493 pages
Architectue of Java: 1. JDK, Jre and JVM 2. JVM
PDF
No ratings yet
Architectue of Java: 1. JDK, Jre and JVM 2. JVM
2 pages
Java Summer Training Report
PDF
100% (1)
Java Summer Training Report
17 pages
Chapter 1: Get Started and Sip Your First Java Cup... (4.5 HRS) Chapter Objective
PDF
No ratings yet
Chapter 1: Get Started and Sip Your First Java Cup... (4.5 HRS) Chapter Objective
8 pages
Core Java With JSP Unit - 1 Chapter - 1. Introduction History
PDF
No ratings yet
Core Java With JSP Unit - 1 Chapter - 1. Introduction History
13 pages
THE JAVA EXPERIENCE
PDF
No ratings yet
THE JAVA EXPERIENCE
71 pages
Scanf Issue2
PDF
No ratings yet
Scanf Issue2
2 pages
Zlib Alternatives
PDF
No ratings yet
Zlib Alternatives
25 pages
Zlib Alternatives1
PDF
No ratings yet
Zlib Alternatives1
6 pages
Scanf Issue1
PDF
No ratings yet
Scanf Issue1
2 pages
Extern Keyword
PDF
No ratings yet
Extern Keyword
5 pages
Const
PDF
No ratings yet
Const
7 pages
Masters Module Organisation
PDF
No ratings yet
Masters Module Organisation
1 page
The New Revised 20-Point Scale Grading System
PDF
No ratings yet
The New Revised 20-Point Scale Grading System
7 pages
How JVM Works - JVM Architecture
PDF
No ratings yet
How JVM Works - JVM Architecture
11 pages
Intro To Java
PDF
No ratings yet
Intro To Java
10 pages
Java Hello World Program
PDF
No ratings yet
Java Hello World Program
8 pages
Difference Between ++i and I++
PDF
No ratings yet
Difference Between ++i and I++
2 pages
Pattern Recognition and Machine Learning
PDF
No ratings yet
Pattern Recognition and Machine Learning
16 pages
Common Ways To Say Hello in Greece - GreekPod101
PDF
No ratings yet
Common Ways To Say Hello in Greece - GreekPod101
8 pages
Programme Specification: Mcomp Information Technology
PDF
No ratings yet
Programme Specification: Mcomp Information Technology
10 pages
FAQ Download Files PDF
PDF
No ratings yet
FAQ Download Files PDF
4 pages
What Type of A Leader Are You - Describe Your Leadership Style
PDF
No ratings yet
What Type of A Leader Are You - Describe Your Leadership Style
4 pages
Coronavirus PDF
PDF
No ratings yet
Coronavirus PDF
5 pages
Configuring Vlan 1 For Switch Management
PDF
No ratings yet
Configuring Vlan 1 For Switch Management
8 pages