- 2

jvm&jre

can anyone tell me what is the different between JVM &JRE

4th Feb 2017, 1:36 PM
Rami Salim
Rami Salim - avatar
4 odpowiedzi
+ 8
JVM refers to the virtual machine which translates your Java code to be understood by your device. JRE refers to the runtime environment in which Java programs are executed. I don't even know what I'm saying, but it makes great sense.
4th Feb 2017, 4:44 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
JDK = JRE + Java compiler JRE = JVM + Java Libraries JVM = Java Interpreter + Excuter + Other components
4th Feb 2017, 7:27 PM
Ahmad Naja
Ahmad Naja - avatar
+ 1
When you write an example.java program, the javac compiler translates it into example.class.Now to run it we type[ java example].After this what happens in background is JRE helps to create( example.class+ other java's own classes needed to execute the program) which is then injected to JVM which ultimately runs the program.
4th Feb 2017, 7:00 PM
Pankaj Singha