adspace


Why Java is a platform independent language?Explain byte code
and JVM

Answer Posted / nilanjan

At first the java source code is compiled and then it is
interpreted to a optimized set of executable statements.
After compiling the source code the bytecode is generated
which is same for all platforms i.e OS. This byte code
needs JVM(java virtual machine) to be interprated which is
defferent for different OS i.e platform.
Due to the byte code which is same for all JVM java is
explicitely known as platform independent language.

source code ---------> bytecode ----------> executable
compilation same interpration
for all by JVM
JVM

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the first argument of the string array in main method?

1030


How does java handle integer overflows and underflows?

1113


What do you understand by casting in java language? What are the types of casting?

923


Are jvm’s platform independent?

982


What is the resourcebundle class?

1012


What is the locale class?

1024


What is the java api?

993


what is reflection api? How are they implemented?

1105


Can we extract main method from another class?

1034


What if I write static public void instead of public static void?

934