Answer Posted / shakir khan
Java sovles the problem of platform independence by using
byte code.Java complier does not produce native executable
code.Instead it produces a special format called byte code.
Byte code is a highly optimized set of instructions
designed to executed by a java runtime system called Java
Virtual Machine(JVM).JVM is an interpreter for byte code.
This interpreter reads or understands the bytecode and
executes the corresponding native machine instructions.
Thus to port java programs to a new platform ,all that
needed is to port the interperter and some of the library
routines.Even the complier is written in java.The byte
codes are precisely defined and remain the same on all
platforms.
The use of byte code enables the java runtime system to
execute programs much faster.
| Is This Answer Correct ? | 36 Yes | 5 No |
Post New Answer View All Answers
What is a numeric literal?
What are the various access specifiers in java?
How many digits is int32?
What is a parameter in simple terms?
How do you define a variable?
What is a constructor overloading in java?
What is javac_g?
What is the benefit of inner / nested classes ?
Difference between class#getinstance() and new operator ?
How to sort elements in a parallel array in java?
Explain importance of finally block in java?
How is the marker interface used in Java?
How can we make a class singleton?
What does singleton mean in java?
Explain different states of a thread in java?