How java is platform independent?
Answer Posted / karthik
When Java Code is compiled a byte code is generated which is
independent of the system. This byte code is fed to the JVM
(Java Virtual Machine) which resides in the system. Since
every system has its own JVM, it doesn't matter where you
compile the source code. The byte code generated by the
compiler can be interpreted by any JVM of any machine. Hence
it is called Platform independent Language.
Java's bytecodes are desgined to be read and interpreted in
exactly same manner on any computer hardware or operating
system that supports Java Runtime Environment.
The Java Virtual Machine can be called a virtual operating
system that enables a java programme to run... we are thus
calling java platform independent because a java program
will not give different outputs on different machines but
platform dependent programmes tend to give different results
when compiled on different machines...
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is predicate in java?
What is nextline method in java?
Tell me about your ability to work under pressure
What is the difference between public, private, protected, and friend access?
Variables used in a switch statement can be used with which datatypes?
Is there any tag in htm to upload and download files?
How many types of methods are there?
What's the default access specifier for variables and methods of a class?
Can we catch more than one exception in a single catch block?
Does string isempty check for null?
Difference between start() and run() method of thread class?
How is abstraction implemented in java ?
What is the buffer limit?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
How many bytes is a string in java?