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
What is nan in java?
How do generics work in java?
How to connect to a remote database using Applet?
explain the concept of virtual method invocation in polymorphism in detail?
Difference between current previous versions of Java?
Is 0 an even number?
What is a generic type?
Is void a keyword in java?
Can we extend singleton class in java?
What are dot operator queries?
What is the use of hashmap in java?
Why local variables are stored in stack?
What is merge sort in java?
Is null false in java?
What are the four versions of java?