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 synonym of framework?
I don’t want my class to be inherited by any other class. What should I do?
How many bits is a char?
What is meant by call by reference?
How do you ensure that n threads can access n resources without deadlock?
Can we use a default constructor of a class even if an explicit constructor is defined?
What are format specifiers in java?
Can we override constructor?
What are the types of arrays in java?
Why do we need hashset in java?
I want to store more than 10 objects in a remote server? Which methodology will follow?
How do I print a “?
Can we overload the methods by making them static?
Explain about instanceof operator in java?
What do you understand by the term string pool?