To initiate compilation
on a Windows system, you open a window. Next, you type the
following, assuming that your class definition is in a source file
named Demonstrate.java
:
javac Demonstrate.java
Such a line is called a command line. The example command line has two parts:
*-- Name of the Java compiler | | *-- Source file's name and extension | v v ---------------- javac Demonstrate.java
The Java compiler places the resulting byte code in a file
named Demonstrate.class
.