Java Compilation Different.

Q3. How is ordinary compilation process different from Java compilation?

Ans. The ordinary compilation, the source code is converted to a machine code, which is dependent upon the machine or the platform. This resultant machine code is called native executable code.

Contrary to ordinary compilers, the Java compiler does not produce native executable code for a  particular machine. Instead it produces a special format called byte code. The Java byte code looks a lot like machine language, but unlike machine language Java byte code is exactly the same on every platform.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s