Compilation in java is the process of translating Java source code into bytecode that can then be executed by the JVM (Java Virtual Machine). The Java compiler handles this translation.