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 does hashset work in java?
Does windows 10 need java?
What is a variable and constant?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
What is a boolean flag in java?
What is a databasemetadata?
How many bytes are a float?
What are kinds of processors?
What is exception handling in java?
Is jdk required on each machine to run a java program?
What are the 6 mandatory procedures for iso 9001?
What kind of variables a class can consist of?
Difference between java and javascript
Define the term string pool?
What about anonymous inner classes in java?