In this tutorial, you will find out about JDK, JRE, and JVM. You will likewise get familiar with the key contrasts between them.
In this article, you will learn-
What is JVM?
JVM (Java Virtual Machine) is an abstract machine that empowers your computer to run a Java program.
At the point when you run the Java program, Java compiler initially incorporates your Java code to bytecode. At that point, the JVM translates of bytecode into native machine code (set of guidelines that a computer’s CPU executes straightforwardly).
Java is a platform independent language. This is on the grounds that when you compose Java code, it’s eventually composed for JVM however not your physical machine (computer). Since JVM executes the Java bytecode which is platform independent, Java is platform independent.
If you are interested in learning about JVM Architecture, visit The JVM Architecture Explained.
What is JRE?
JRE (Java Runtime Environment) is a software package that gives Java class libraries, Java Virtual Machine (JVM), and different segments that are needed to run Java applications.
JRE is the superset of JVM.
If you need to run Java programs, but not develop them, JRE is what you need. You can download JRE from Java SE Runtime Environment 8 Downloads page.
What is JDK?
JDK (Java Development Kit) is a software development kit needed to create applications in Java. At the point when you download JDK, JRE is additionally downloaded with it.
In addition JRE, JDK likewise contains various development tools (compilers, JavaDoc, Java Debugger, and so on).
If you want to develop Java applications, download JDK.
Relationship between JVM, JRE, and JDK.
Thanks for watching! We hope you found this tutorial helpful and we would love to hear your feedback in the Comments section below. And show us what you’ve learned by sharing your photos and creative projects with us.