Computer Science, asked by pankajverma0, 11 months ago

what is the role of JVM in platform independence​

Answers

Answered by rajnandanikumari33
1

The JVM is used to both translate the bytecode into the machine language for a particular computer, and actually execute the corresponding machine-language instructions as well. Without the JVM, you can't run a Java application.


pankajverma0: thanks
Answered by cyrusbishop
1

Answer:

The role of JVM in independent platform is that it acts as a virtual processor, which processes the byte code to machine code instructions for various platforms.

Explanation:

Java machine code varies for different platform like Windows, UNIX, OS-2 etc.

Programs written in Java are compiled into the Java Byte Code, which is then interpreted by a special Java Interpreter for a specific platform. Actually, this Java interpreter is known as the Java Virtual Machine.

The machine language for the Java Virtual Machine is called Java byte code.

Similar questions