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
Can we use both this () and super () in a constructor?
What do you mean Abstraction in java?
What is finalize method?
Is java a compiler?
Is zero a positive integer?
How can we access some class in another class in java?
Why we used vector class?
What are the advantages of compiled language?
Why singleton pattern is better than creating singleton class with static instance?
What is the purpose of extern variable?
What are thread safe functions?
What is the size of an array?
What is floor math?
What are the differences between getting and load method?
What will happen to the exception object after exception handling?