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 connection pooling in java?

723


What is the difference between java se and java ee?

571


What about products that claim to block java applets at a firewall? : java security

691


Is lambda expression an object?

651


What is the means of java?

633


What is flatmap in rxjs?

625


What is entitymanager in jpa?

616


What are orm tools in java?

754


What is scrollable resultset in java?

642


when i send the request to the JSP page it will print as it is and why? and how to solve this problem please inform me that solution

1613


How do I know if I have jre or jdk?

671


What is a stream in java?

680


What do you understand by casting in java language? What are the types of casting?

605


What is explicit casting?

703


What is tight coupling in java?

672