when there is a need of jvm then how we can say that java
is a platform independent language?
Answer Posted / vatsal doshi
JVM is actually a virtual machine, which operates at one level of abstraction above the actual platform.
Platform = OS + Underlying Hardware
Now, Java compiled code(byte code) is targetted to run on JVM, independent of underlying actual platform.
So, Java code written on windows can be directly run on linux/mac/solaris, without recompilation, provided JVM is installed in the target machine.
We have different implementations of JVM for different platforms. The advantage is that though JVM is platform dependent, but the compiled code now becomes platform independent.
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
What is arraylist e?
Why javac is not recognized?
What is method overloading in java ?
Why is stringbuffer faster than string?
What is a literal coding?
Can we declare a constructor as final?
Which language is java?
Can we catch more than one exception in single catch block?
what is enumset?
What is void class in java?
Is an empty arraylist null?
Differentiate between stringbuffer and stringbuilder in java.
How many inner classes can a class have?
Define an enumeration?
What is the static field modifier?