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
What is jpa entitymanager?
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?
Which is more secure: java or activex? : java security
Why do we need framework in java?
What is data persistence in java?
Explain issues of old java date api?
How do javabeans work?
What happens if javac is not recognized?
What are orm tools in java?
What is meant by rest api in java?
ioc vs dependency injection?
What is optional in java 8? What is the use of optional?advantages of java 8 optional?
What is stateful in java?
I run a web server. Am I at risk? : java security
Why do we need new date and time api in java se 8?