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 does t in java mean?
Explain about procedural programming language or structured programming language and its features?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
What is a java object and java application?
Is it possible to instantiate the abstract class?
What is r in java?
How is hashcode calculated in java?
What is set string?
How do you sort a list in java?
Can I declare class as static or private?
What are the common uses of "this" keyword in java ?
What is the difference between int and integer in java?
What invokes a thread's run() method in java programming?
Why java is not 100% object-oriented?
Explain about main thread in java?