How java is platform independent?
Answer Posted / karthik
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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between this() and super() in java?
How is the marker interface used in Java?
Is string is a data type in java?
What are the restrictions imposed on method overriding?
What methods are used in Servlet?Applet communication?
How to disable caching on back button of the browser?
Can bool be null?
What does opcode mean?
Explain different ways of creating a thread?
When can you say a graph to be a tree?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Describe 2 different ways to concatenate two strings.
How to provide security in java
What are the differences between abstract class and interface?
What is http client in java?