0
1.5kviews
Difference Between C++ and java.

Mumbai University > Information Technology > Sem 3 > Object Oriented Programming Methodology

Marks: 5 M

Year: Dec 2013

1 Answer
0
2views
  • The output of java complier is not an executable code, rather it is a bytecode.
  • Bytecode 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.