adspace


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

Answer Posted / hemalatha

When Java Code is compiled a byte code is generated which
is independent of the system. This byte code is fed to the
JVM (Java Virtual Machine) which is resided in the system.
Since every system has its own JVM, it doesn't matter where
you compile the source code. The byte code generated by the
compiler can be interpreted by any JVM of any machine.
Hence it is called Platform independent Language.

Is This Answer Correct ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we extract main method from another class?

1034


What is the locale class?

1024


what is reflection api? How are they implemented?

1105


How does java handle integer overflows and underflows?

1113


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

1030


What is the resourcebundle class?

1012


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

923


What is the java api?

993


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

934


Are jvm’s platform independent?

982