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
How to create packages in java?
What is a static class in java?
What are the steps involved to write rmi based programs?
what is the purpose of "virtual"?
What is the use of object and class classes?
What are the 3 types of control structures?
Why can't you declare a class as protected?
What is t in generics in java?
What are triggers in DB? Explain their types. How do they work?
what are synchronized methods and synchronized statements? : Java thread
What is formatted output in java?
Can list have duplicates in java?
What is the static method?
What is float in java?
How many days will it take to learn java?