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 anagram of a string?
Can long be null in java?
Why do we create public static method in java?
Why are variables important in research?
Difference between collection, collection and collections in java?
Why does it take so much time to access an applet having swing components the first time?
What is an example of a boolean?
What are the pillars of java?
Which access specifier can be used with class ?
What is a method signature java?
What is the do while loop syntax?
What is arrays fill in java?
Can we have a try block without catch block?
For class CFoo { }; what default methods will the compiler generate for you>?
Difference between class#getinstance() and new operator ?