(This exercise assumes your computer contains a Hello.java file like that in Figure 1.6 . If not,...
Question:
(This exercise assumes your computer contains a Hello.java file like that in Figure 1.6. If not, use a plain text editor to create such a file.) Experiment with the Hello.java program to learn the meanings of typical compilation and runtime error messages:
a) Omit the final / from the header block.
b) Omit any part of the argument in the parentheses after main.
c) Omit the semicolon from the end of the output statement.
d) One at a time, omit the braces, { and }.
e) Try using lowercase, $, _, or a number for the first character in the class name.
f) Make the program filename different from the class name.
g) Change main to Main.
h) One at a time, try omitting public, static, and void from before main.
Figure 1.6
Step by Step Answer:
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean