Categories: Java

JDK vs JRE vs JVM

Let us now compare Java Virtual Machine, JRE, and JDK. The following are the key distinctions between JDK, JRE, and JVM.

Sr. No. KeyJDKJREJVM
1DefinitionThe Java Development Kit (JDK) is a software development kit for creating Java applications. JDK includes a number of development tools in addition to JRE (compilers, JavaDoc, Java Debugger etc.).JRE (Java Runtime Environment) is the JVM implementation and is defined as a software package that includes Java class libraries, a Java Virtual Machine (JVM), and other components for running Java applications.JVM (Java Virtual Machine) is a platform-independent abstract machine with three concepts: specification, a document describing JVM implementation requirements, implementation, a computer program that meets JVM requirements, and instance, an implementation that executes Java byte code.
2Prime functionalityJDK is a programming language that is primarily used for code execution and development.JRE, on the other hand, is primarily responsible for creating the environment in which code can be executed.JVM, on the other hand, specifies all implementations and is responsible for providing them to JRE.
3Platform IndependenceJDK is platform-dependent, which means that different JDKs are required for different platforms.JRE, like JDK, is platform-dependent.JVM is platform-independent.
4ToolsBecause JDK is in charge of primary development, it includes tools for creating, debugging, and monitoring Java applications.JRE, on the other hand, does not include tools like a compiler or a debugger. Rather, it contains the class libraries and other supporting files required by JVM to run the program.Software development tools are not included in the JVM.
5ImplementationJDK = Java Runtime Environment (JRE) + Development toolsJRE = Java Virtual Machine (JVM) + Libraries to run the applicationJVM = Only Runtime environment for executing the Java byte code.

Note: also read about the Byte Code in Java

Follow Me

If you like my post please follow me to read my latest post on programming and technology.

https://www.instagram.com/coderz.py/

https://www.facebook.com/coderz.py

Share
Published by
Rabecca Fatima

Recent Posts

Square Root of Integer

Given an integer A. Compute and return the square root of A. If A is…

1 year ago

Build Array From Permutation

Given a zero-based permutation nums (0-indexed), build an array ans of the same length where…

1 year ago

DSA: Heap

A heap is a specialized tree-based data structure that satisfies the heap property. It is…

1 year ago

DSA: Trie

What is a Trie in DSA? A trie, often known as a prefix tree, is…

1 year ago

Trees: Lowest Common Ancestor

What is the Lowest Common Ancestor? In a tree, the lowest common ancestor (LCA) of…

1 year ago

Binary Search Tree (BST)

A Binary Search Tree (BST) is a type of binary tree that satisfies the following…

1 year ago