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
Explain when we should make an instance variable private.
What is the return type of the main method?
What is class??
What is loop in java?
What does main method?
What is difference between == equals () and compareto () method?
What is garbage collection? Can it be forced to run?
What does split function do in java?
Is 0 true or is 1 true?
What is the difference between static method and instance method in Java?
Explain serialization and deserialization in java?
List down the methods and interfaces of collection class in java.
Is an object null?
Why are generics used?
What is method overloading with type promotion?