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
Is math class static in java?
Is ++ operator is thread safe in java?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What is double checked locking in singleton?
Why java is platform independent? Explain.
Is set sorted in java?
What value is a variable of the string type automatically initialized?
What do you understand by copy constructor in java?
What is the formula to calculate percentage?
How to invoke external process in java.
write a program that list all permutations of ABCDEF in which A appears before B?
What is string manipulation?
Can we override private constructor in java?
How many bytes is a string in java?
What is the difference between jdk, jre, and jvm?