Tuesday, 26 March 2013

What is the need of byte code in Java?

Though some programs can be made to run to specific hardware platforms by using platform specific

compiler/interpreter, but this requires that the programmer understands the platform before writing

the program and hence needs to write program specific to each platform.

The use of ByteCode results in common code for each platform and hence the programmer is releived of the responsibility to know the platform on which his program will run.

The Virtual Machine which is designed to be specific for each platform and runs the ByteCode seamlessly on any platform for which a Java Virtual Machine (JVM) is available.
 
 

No comments:

Post a Comment