aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes K & B mock exam question typo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "K & B mock exam question typo" Watch "K & B mock exam question typo" New topic
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: 805
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. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: K & B mock exam question typo