Bytecode in Java
Written by
Before jumping to bytecode let’s understand the basics of language conversion:
In this process of language conversion, from High-Level Language to Low-Level Language, the original instruction written by the computer is called source code.
After compilation or interpretation, the Source Code becomes machine code.
This process is general for all the programming languages.
But there is a little deviation for Java.
The Java Source Code is first passed through the Java Compiler which converts it into bytecode.
This bytecode is highly portable in nature because it is platform independent and could be run anywhere.
This Java bytecode is again passed through the Java Interpreter which is known as Java virtual machine (JVM). The resultant of this process is called object code (Machine code). The object code is different for various systems. So the interpreter makes the bytecode in compliance with the platform on which it is executed.