Question 19
What is the result of attempting to compile each of the three class declarations and invoke each main method from the command line using jdk 1.4 or any jdk that is compliant with section 12.1.4 of The
Java Language Specification?
a. Compiler error at line 2.
b. Compiler error at line 5.
c. Compiler error at line 8.
d. Run time error at line 2.
e. Run time error at line 5.
f. Run time error at line 8.
g. None of the Above
Answers are
Run time error at line 5. Run time error at line 8.
This code compiled and ran without any errors on my machine.
[ January 22, 2003: Message edited by: Jim Yingst ]