This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 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. 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...)
 
jQuery in Action, 2nd edition
 
subject: K & B mock exam question typo
 
Similar Threads
Arrays
Bonus MasterExam error
K&B Exam - incorrect answer?
Question about Master Exam question (array usage)
Question "Declare long arrays" in MasterExam downloadable free with purchase of S&B