How java is platform independent?
Answer Posted / chandra sekhar dash
Java compiler compiles the source code into bytecodes. These
bytecodes are platform independant i.e. in other words
specific to the Java Virtual Machine specification. This
enables platform independant compilation.
When the bytecode compiled programs are executed through the
Java interpeter, it converts those bytecodes into native
machine code and executes them through the JVM which is
specific to host environment it is running on. This enables
platform specific execution.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Difference between class#getinstance() and new operator ?
Which class is the superclass for all the classes?
Can we have try block without catch block?
when you will synchronize a piece of your code? : Java thread
How many characters is 2 bytes?
How objects are stored in java?
Can I import same package/class twice?
What is incompatible types in java?
Can we overload the main() method?
What is nested top-level class?
What is the use of keywords in java?
Can a top level class be private or protected?
What is main string [] args?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
what is interface in java? Explain