Wednesday, July 22, 2015

Platform Independent JAVA

Java is compiled to a byte code by the java compiler, which is the intermediate language between source code and machine code. This byte code is not platform specific and hence can be fed to any platform.

JVM is the interpretor that converts byte code to machine code.

Thus if we have JVM installed on any platform, java applications work perfectly fine.


Source Code (Program.java) -- Compiler --> Byte Code (Program.class)

Byte Code (Program.class) -- JVM --> Machine Code

No comments:

Post a Comment

Home