Java Compilation Process

Below is a picture to show the basic compilation process for Java:

The basic compilation process for Java.

The compiler (javac) takes the source code files (.java) and compiles them into class files (.class). The class files contain Bytecode instructions. The Java Runtime takes the class files and runs them by interpreting the Bytecode instructions to machine instructions.