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 the static import?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
What is the unit of plancks constant?
What will happen if a thrown exception is not handled?
how would you implement a thread pool? : Java thread
What modifiers may be used with a top-level class?
Is constructor inherited?
State the difference between strings and arrays.
What exactly is a .class file?
How many bytes is a unicode character?
What is general methodology?
How does linkedlist work in java?
What are the differences between checked exception and unchecked exception?
What are java methods?
What is continuity of a function?