Java™ How to Program, 9/e © Copyright by Pearson Education, Inc. All Rights Reserved.
To compile the program, type java Welcome1.java To execute the program, type java Welcome1 Launches the JVM, which loads the.class file for class Welcome1. Note that the.class file-name extension is omitted from the preceding command; otherwise, the JVM will not execute the program. The JVM calls method main to execute the program. © Copyright by Pearson Education, Inc. All Rights Reserved.