Home » Java programming language

Explain JDK and JRE

Learn: Here we will learn about JDK and JRE and what are the core concepts of JDK and JRE and what the difference between JDK and JRE is?
Submitted by Preeti Jain, on January 29, 2018

1) JDK

1) JDK stands for Java Development Kit.

2) JDK provides an environment or platform to develop or Run java applications

For Example

If I am a developer, so I need JDK by which I can develop (JDK provides a platform to write java code) or run java applications (How application is working?).

3) JDK = JRE (JVM + Libraries) + Development Tools (It means JDK is a combination of JRE and Development Tools).

4) In JDK Development tools like Compiler, debugger etc.

5) In JDK Development tools like Compiler, debugger etc. In JDK (Develop program (Sample.java) → Compile program (Sample.class) → Executes (Display Welcome Java).

6) JDK is a 3 step process

  1. Write java code.
  2. Compile java code.
  3. Execute java code.

2) JRE

1) JRE stands for Java Runtime Environment.

2) JRE provides an environment or platform to run java applications. It provides Runtime Environment. Here we are talking about executing java applications (i.e. provide facility to run developed java application).

3) JRE contains sets of libraries and JVM use those libraries at Runtime.

For Example

If I am a Client or buyer of the java application so I need JRE by which I can run (JRE provides a platform to Run) java application I don't need to develop or write java application.

4) JRE = JRE (JVM + Libraries). It means JRE is a combination of JVM and Libraries).

5) JRE is a part of JDK but not vice versa.

6) In JRE (Compiled program (Sample.class) → Executes (Display Welcome Java).

7) JRE is a 1 step process: 1) Execute Compiled Code.

8) JRE physically exists in the system (i.e. No virtual kind of machine or no abstract in nature).

9) To run any java code JRE is minimum required.

Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.