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 thread life cycle in java?

589


how to deploy apache tomcat server to weblogic server in java

1599


How many types of constructors are used in java?

541


What is object cloning in Java?

636


What is the need of transient variables in Java ?

581






How do constructors use this() and super()?

549


If a variable is declared as private, where may the variable be accessed?

552


What is the concept of multithreading?

521


Which collection allows duplicate values in java?

546


What is wrapper class example?

539


Can we sort a map in java?

578


Explain what access modifiers can be used for variables?

593


What is the equal sign?

565


What is jrmp?

550


List any five features of java?

568