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

What is purpose of applet programming?

648


Explain jvm, jre, and jdk?

573


Which category the java thread do fall in?

579


How do you add an arraylist to an array in java?

511


How do you sing an Applet ?

2044






List implementations of list interface?

571


Can size_t be negative?

624


How many types of string data types are there?

566


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

1829


How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?

552


Write a function to print Fibonacci series and Tribonacci series?

765


What do you mean by mnemonics?

546


How do you generate random numbers in java?

528


In java how do we copy objects?

563


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

623