How JAVA achieves platform independence?
5150 Since 25th November, 2003
Select and Copy the Code
Java is platform independent because of the consistent data sizes at all the platforms on which Java code is run. The output of a Java compiler is not an executable code it is bytecode. bytecode is highly optimized set of instructions designed to be executed by a virtual machine that the Java run-time system emulates. As Java programs are interpreted, rather than compiled it is much easier to run them in a variety of run-time environments.