In K&B SCJP 5 this is the given solution to Chapter 8
Self Test 9 (pages 662/669/670):
First I voted "G", too, but then switched to "F".
Because, yes, the semicolon is missing, but the compiler will
flag this as an error not until line 8 at the "System".
Enough talking, let's verify:
qed
Three questions:
- Is it really an error in K&B SCJP 5 or am I missing something?
- I looked up the "K&B, SCJP 5 - Errata: Updated 7/28/06" page.
A correction to page 669 is given:
"669....typo......Answer s/b: A,B,D,E, and F are incorrect"
That's even more mysterious to me. First, based on the things
above it's not a correction. Second, why "C" is taken away?
- More important: At the real SCJP exam, can you be (on one
question or the other) just be "to smart" ;-) ... and should
you anticipate and click the would-by-correct-answer even if
you know it's wrong :-) ?
Regards,
Volker Glave