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
Differences between intermediate operations and terminal operations of java 8’s stream api?
What are anonymous methods and lambda expression?
Can we install jre without jdk?
Why java?
What is a jvm?
What is the meaning of loosely coupled in java?
What is ehcache in java?
What are orm tools in java?
What is meant by annotations in java?
Is php faster than java?
What is a uint8?
What is exe file in java?
What can open a jar file?
How do I run a java program from the command line?
Which interceptor is responsible for setting action javabean properties?