Answer Posted / liza
Java compiler compiles the .java file(source code) by
generating the .class file comprising the bytecodes.
Bytecodes are platform independent and can be executed in a
system where JVM is installed.
JVM interpretes bytecodes into machine code depending upon
the underlying OS and H/W combination.
JVM provides a machine interface that does not depend on the
underlying OS and machine H/W architecture, thus making JAVA
as platform independent.
This makes java program as write-once run-anywhere.Only we
need to install compatible JVM, bcoz JVM is platform dependent.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How many types of classes are there in java?
What is the difference between arraylist and hashset in java?
What does index mean in java?
Explain throw keyword in java?
Is math class static in java?
What are the access modifiers available in java?
Can you run java program without main method?
Why is java so important?
What is java dot?
What is charat ()?
What is boolean example?
Is int a class in java?
Which java version is latest?
Can we pass null as argument in java?
What is called module?