| Author |
K & B mock exam question typo
|
Francis Palattao
Ranch Hand
Joined: Sep 22, 2004
Posts: 91
|
|
This should be runtime error but in the mock exam it says the answer is Compilation error at line 6. Is it a typo?
|
SCJP 1.4 <br />SCWCD 1.4 (preparing)<br />SCBCD 1.3 (coming soon)
|
 |
Jeff Bosch
Ranch Hand
Joined: Jul 30, 2003
Posts: 804
|
|
|
It's actually a runtime exception (not error) because the program tries to access an uninitialized array element. (You're also missing an opening brace at main().)
|
Give a man a fish, he'll eat for one day. <br />Teach a man to fish, he'll drink all your beer.<br /> <br />Cheers,<br /> <br />Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
|
 |
 |
|
|
subject: K & B mock exam question typo
|
|
|