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
Can we declare register variable as global?
Where are the local variables stored?
What is meant by distributed application? Why are we using that in our application?
What are examples of modifiers?
Which class is used by server applications to obtain a port and listen for client requests?
Write a program based on Java script program.
What is the purpose of a default constructor?
Why wait and notify methods are declared in object class?
How do you do absolute value in java?
When do you get classcastexception?
Is java a security risk?
What is sizeof in java?
What is the replace tool?
What is the use of StringTokenizer class?
List any five features of java?