0
2.2kviews
Short note on JVM

Similar questions

Explain how Java is platform Independent.

Marks: 5 M

Year: Dec 2013, May 2014, Dec 2014, May 2015

1 Answer
0
15views

The output of java complier is not an executable code, rather it is a bytecode.

  • Byte code is a highly optimized set of instructions designed to be executed by the Java run-time system, which is called the Java Virtual Machine (JVM).
  • JVM is a platform independent execution environment that converts Bytecode into machine codes and executes it.
  • In a standard form, JVM is an interpreter for bytecode. Therefore, java programs are executed by JVM.
  • Translating a Java program into bytecode helps makes it much easier to run a program in a wide variety of environments.
  • The reason is straightforward: only the JVM needs to be implemented for each platform.
  • The execution of every program is under the control of JVM, making Java secure.
  • JVM enabling bytecode to be executed on any processor regardless of operating system. Hence making Java Platform Independent.
Please log in to add an answer.