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


Please Help Members By Posting Answers For Below Questions

Explain method overloading?

574


What will happen if a thrown exception is not handled?

566


Explain, java is compatible with all servers but not all browsers?

617


What is a map in java?

556


Why is a constant variable important?

505






Can we restart a thread already started in java?

584


Can we override private constructor in java?

509


What are runtime exceptions?

620


What is wrapper class html?

531


How do you convert boolean to boolean?

527


Are generics important java?

529


Can we have multiple public classes in a java source file?

560


What is the range of the short type?

590


How to print an arraylist in java?

504


Explain oops concepts in detail?

580