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
Can a dead thread be started again?
What is mq in java?
What is the difference between lambdas and delegates?
What are the authentication modes in asp.net? : java security
What is interceptors in java?
When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?
How do I install java re?
What is @qualifier in java?
What is predicate in lambda expression?
Do I really have to type in the programs in the book to try them out?
What is a context in java?
What are the advantages of java sockets?
What about 'hostile applets'? : java security
How does java handle integer overflows and underflows?
What is the use of lambda functions?