Question: what is the difference between .class and .java files?
Answer: A . java file contains your Java source code while a . class file contains the Java bytecode produced by the Java compiler. ... class files that run on the JVM to execute a Java application.