A Java class file is a file that contains Java bytecode that the Java Virtual Machine can run. A Java class file is often created by a Java compiler from source files containing Java classes in the Java programming language.