How java is platform independent?
Answer Posted / prankur tripathi
java is platform independent bcoz it can be run on any
platform.When Java Code is compiled a byte code is
generated which is independent of the system. This byte
code is fed to the JVM (Java Virtual Machine) which resides
in the system. Since every system has its own JVM, it
doesn't matter where you compile the source code. The byte
code generated by the compiler can be interpreted by any
JVM of any machine. Hence it is called Platform independent
Language.
Java's bytecodes are desgined to be read and interpreted in
exactly same manner on any computer hardware or operating
system that supports Java Runtime Environment.
The Java Virtual Machine can be called a virtual operating
system that enables a java programme to run... we are thus
calling java platform independent because a java program
will not give different outputs on different machines but
platform dependent programmes tend to give different
results when compiled on different machines...
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
In which order the iterator iterates over collection?
Why do we use bufferedreader?
What is the function of static in java?
Explain jvm, jre, and jdk?
What are runtime exceptions?
Which software is used for java programming?
How do you square a number?
How do you find the absolute value?
What is string manipulation?
What is the common usage of serialization? What exceptions occur during serialization?
Is java hard to learn?
Does constructor be static?
Explain throw keyword in java?
Why Java doesn’t support multiple inheritance?
Is string a class?