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 lsdou? : java security

530


What is stateless in java?

498


In java what is the difference between sleep() and wait() .

506


What is lambda expression in mvc?

473


What is property file in java?

474






What is javabeans api?

486


What are the benefits of a jar file?

498


What is dependency injection in java?

468


What is @override annotation in java?

486


What does el mean in java?

520


How do javabeans work?

473


Write a program for the following topic - switch case,looping using fuction calling,nesting,console input output. Aim- to print a menu:- 1-series 2-single value. Each menu having sub menu armstrong or perfect.

1505


Can optional be null?

526


What is the meaning of the words public, static and void?

472


What is jersey in java?

462