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 does the “final” keyword mean in front of a variable? A method? A class?
What is the use of list in java?
Can arraylist hold different types java?
what is bmg file and how to create that files?what will it contailn?
What is the difference between a method and a function in alice?
Can inner class have constructor?
What are the classes of java?
I want to persist data of objects for later use. What is the best approach to do so?
What is java console application?
What is anti pattern in programming?
How can we create a thread in java?
Which class cannot be a subclass in java?
What is a java predicate?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
What does bitwise or mean?