Workbook 1c, p.37 — From Source Code to Running Program
Java is both compiled AND interpreted.
The compiler (javac) turns your code into bytecode.
The JVM then interprets that bytecode into machine code for whatever OS you're on.
In IntelliJ, clicking the green Run button does
steps 2–5 automatically! It compiles your .java file and runs the
output in one click — no terminal commands needed.