How java is platform independent?
Answer Posted / sandeep chauhan
the program is written in any language is called the source
program.and after compilation source code we get the object
code.so in java the source program is in ".java" file.when
this is compiled the object code will be in the ".class"
file.and this object code is bytecode.and this is is not
executable directly by any machine or o.s. so there will be
java virtual machine(jvm) which is an interpreter and
interpret the compiled object code into machine
understandable language.and which is executable for
machine.but every machine have its own jvm.and so this
bytecode can be executed in any machine according to there
jvm.so java is plateform independent language.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the default value of an object reference declared as an instance variable?
How do you write a scanner class in java?
How do you break a loop?
Explain about exception propagation?
What is the difference between sleep and wait in java?
Is 0 a prime number?
Differentiate between nested and inner class in java.
Is there a sort function in java?
What is the program compilation process?
What are the two types of streams offered by java 8?
What are the ways to instantiate the class class?
In java, how we can disallow serialization of variables?
How do you stop a thread in java?
How many types of variables are there?
What is the difference between hashset and treeset in java?