In the previous chapters we familarized outself with compiling and running programs.
In this chapter we'll dig deeper, and also look at options.
Compile -- Java converts the program source code (JAVA file) that we wrote into machine code (CLASS file).
Run -- Java runs the machine code CLASS file
There are two primary file types for these operations:
- The JAVA file is the source code that the programmer writes (file extension ".java")
- The CLASS file is the output that the Java compiler generates (file extension ".class")
Java has a tool for each:
- javac.exe is a tool to compile a Java program
- java.exe is a tool to run a Java program