February 2014
Beginner
1248 pages
62h 25m
English
In Phase 2, you use the command javac (the Java compiler) to compile a program (Fig. 1.7). For example, to compile a program called Welcome.java, you’d type
Fig. 1.7 | Typical Java development environment—compilation phase.
javac Welcome.java
in your system’s command window (i.e., the Command Prompt in Windows, the Terminal application in OS X) or a Linux shell (also called Terminal in some versions of Linux). If the program compiles, the compiler produces a .class file called Welcome.class that contains the compiled version. IDEs typically provide a menu item, such as Build or Make, that invokes ...
Read now
Unlock full access