Home Segments Top Top Previous Next

52: Mainline

Once the Java compiler has placed the resulting byte code in Demonstrate.class, you can execute the main program defined inside the class definition by typing another command line:

  *-- Name of the Java virtual machine 
  | 
  |     *-- Object file's name 
  |     v 
  v  ----------- 
java Demonstrate