Question: what is the difference between the file myprogram.java and the file myprogram.class?
Answer: MyProgram. java is a source code file typed by the programmer, and MyProgram. class is a compiled executable class file that is run by the computer.