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.

Was this page helpful? YES NO

Are you a blogger? Join our Blogging forum.

Comments and Discussions

We are using Google to publish ads on our website; Google has its own privacy policies. They may save log, cookies on your system. Google may also collect information of your system like IP address, region, city, country. For more details please go through the Google’s privacy policy.