Summary
In this chapter, we examined the various ways in which we can write, compile, and execute Java programs from the command line. We looked at REPL in JShell to run snippets of code quickly. Then, we saw the classic way that Java is compiled and executed in two steps. Finally, we looked at Launch Single-File Source-Code Programs for executing Java programs written in a single file. With the Shebang concept found in macOS and Linux, we saw how Java could even be used as a scripting language. We ended by briefly looking at the four most common IDEs.
Now that you know how to write, compile, and execute Java programs, in the next chapter, we will explore an external build system that can be used from the command line or within an IDE. This topic will help explain why your choice of IDE is personal. You will see why developers can work together while members of the team may use a different IDE.