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 a container in a gui?
What is the purpose of encapsulation?
How are observer and observable used in java programming?
How to reverse string in java?
How to invoke external process in java.
What is the difference between exception and error in java?
What is the use of set in java?
why would you use a synchronized block vs. Synchronized method? : Java thread
Why local variables are stored in stack?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
Will minecraft java be discontinued?
What is a boolean expression in java?
How do you declare an empty string?
What does 0 mean in boolean?
What is integer parseint?