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 jpa entitymanager?

531


program A and B are analysed and found to have worst case running time greater than 150NlogN and N*N respectively. which program has the better guarantee after the running time for the large values of N(N>10000)? which program has the better guarantee for the running time of small program N (N<100)? which program will run faster on average for N=1000?

1685


Which is more secure: java or activex? : java security

586


Why do we need framework in java?

521


What is data persistence in java?

697






Explain issues of old java date api?

619


How do javabeans work?

552


What happens if javac is not recognized?

528


What are orm tools in java?

667


What is meant by rest api in java?

549


ioc vs dependency injection?

1984


What is optional in java 8? What is the use of optional?advantages of java 8 optional?

570


What is stateful in java?

573


I run a web server. Am I at risk? : java security

581


Why do we need new date and time api in java se 8?

555