+ 6

What does java interpreter and JVM do?

28th Jan 2017, 6:40 PM
Am²ar Yas²er
Am²ar Yas²er - avatar
6 Réponses
+ 3
A program usually runs on the operating system. That means you need a different version for different operating systems. The JVM is an adapter. So the JVM runs on your operating system and your Java program runs on the JVM. So you only need one version of your program.
28th Jan 2017, 10:22 PM
1of3
1of3 - avatar
+ 6
Thanks @1of3
22nd Oct 2017, 2:17 PM
Am²ar Yas²er
Am²ar Yas²er - avatar
+ 5
Is JVM the reason for Java's "Write one, run every where"? @1of3
29th Jan 2017, 2:03 AM
Am²ar Yas²er
Am²ar Yas²er - avatar
+ 3
in short they read the java byte code and execute it after translating to machine code
28th Jan 2017, 8:56 PM
Sandeep Chatterjee
+ 1
Yes. Indeed. A downside might be that you might not be able to do everything on the JVM that you could do on the operating system itself. That's why computer games are usually not written in Java.
29th Jan 2017, 8:43 AM
1of3
1of3 - avatar
+ 1
Jvm is stands for java virtual machine it provide environment to run the byte code ..it is abstract machine who 1)Load the code 2) verify the code 3) execute the code
7th Feb 2020, 5:33 PM
Sakshi Shripanavar