javac command can compile multiple classes at once. Simply list the source-code filenames after the command with each filename separated by a space from the next. If the directory containing the app includes only one app’s files, you can compile all of its classes with the command
javac *.java. The asterisk (
*.java indicates that all files in the current directory ending with the filename extension “
.java” should be compiled.