Question: what is the difference between class and jar file?
Answer: A class is a construct that is used as a blueprint to create instances of the class. A java file contains Java code. A Java file is compiled to produce a class file that can be loaded by the JVM. ... A Jar file is an archive of otherfile, most likely class files.