The CLASS file extension is used for Java Classes. CLASS file is the is machine-readable file which is compiled from JAVA source file. CLASS file is applied to the Java Class File, which is used in defining program functions and variables, which can be read with any text editor program and executed by the JVM.