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 do you reverse a list?
What is the purpose of the strictfp keyword?
How many bytes is a char in java?
What are the types of web technologies?
how to create multithreaded program? : Java thread
What are the two categories of data types in the java programming language?
What is the difference between overriding and overloading in OOPS.
What is balanced tree in java?
Why main() method is public, static and void in java ?
What is sortedset in java?
Is arraylist a class in java?
What is use of inner class in java?
can java object be locked down for exclusive use by a given thread? : Java thread
What is a method vs function?
Can you create an object of an abstract class?