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
Are there tuples in java?
What is the difference between ec2 and lambda?
What is the means of java?
What does el mean in java?
What do you mean by exception handling?
What is persistence xml in java?
Why do we create dto in java?
Please can anybody explain what exactly "the project architecture" means???
Does jvm maintain a cache by itself? Does the jvm allocate objects in heap? Is this the os heap or the heap maintained by the jvm? Why
How do I install java on windows?
What is the difference between map and flatmap in java?
Can we install jre without jdk?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. Define how can I implement this logic?
What is a java executable jar file?
How can the static main method use instance variables?