5. What Are .java and .class Files? .java file: β’ Contains Java source code. β’ Written by the programmer. β’ Human-readable. β’ Compiled using javac. .class file: β’ Contains compiled Java bytecode. β’ Generated by the Java compiler. β’ Executed by the JVM. 6. Basic Java Program Struβ¦