Class file in Java is core of how java achieves platform independence. When you compile Java source file it generates number of class file based upon number of declared classes in source file. Class file contains byte code which is machine independent cod