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 method to expand and collapse nodes in a jtree?
Can we create an object of static class in java?
What are multiple inheritances?
How do you avoid global variables?
What is the use of runnable interface?
What is the default value of local and global variables?
How do you check if two strings are equal in java?
Is namespace same as package in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
Explain the features of interfaces in java?
What is a 16 bit word?
What are parameters in a method?
What is the public method modifier?
Mention some interfaces implemented by linked list in java.
Is void a return type?