I am not able to find proper explanation. I could find reasons for why JVM is called virtual machine but not for why jre is not called as virtual machine . Please help.
Asked
Active
Viewed 265 times
-3
-
2Does this answer your question? [What is the difference between JVM, JDK, JRE & OpenJDK?](https://stackoverflow.com/questions/11547458/what-is-the-difference-between-jvm-jdk-jre-openjdk) – Janez Kuhar Oct 04 '21 at 13:32
-
The JVM is to the JRE what the motor is to a car: it is a part of it. And while the JVM is a virtual machine we don't call the JRE a virtual machine for similar reasons as we don't say a car is a motor. – Thomas Kläger Oct 04 '21 at 14:08
-
Hi adwaita, Have you seen my answer? Did you find it helpful? I'll be so happy to give me some feedbacks, cheers. – Behdad Abdollahi Moghadam Oct 05 '21 at 06:16
1 Answers
0
The differences of JVM and JRE , including the reason why JVM is not called a virtual machine as opposed to JVM:
The
JREis an abbreviation forJava Runtime Environment, where as the TheJVMis an abbreviation forJava Virtual Machine.Defenition:
- The
Java Runtime Environment (JRE)is an implementation ofJVM.
It is a type of software package that providesclass librariesof
Java,JVM, and various other components for running the
applications written in Java programming. - The
Java Virtual Machine (JVM)is a platform-independent abstract machine that has three notions in the form of specifications.
- The
Funcionality:
JREhas a major responsibility for creating an environment for the execution of code.JVMspecifies all of the implementations. It is responsible for providing all of these implementations to theJRE.
I hope you understood why JRE is not called a virtual machine.
Behdad Abdollahi Moghadam
- 1,385
- 1
- 5
- 20