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
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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. <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...)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: K & B mock exam question typo
 
Similar Threads
Bonus MasterExam error
Arrays
Question about Master Exam question (array usage)
K&B Exam - incorrect answer?
Question "Declare long arrays" in MasterExam downloadable free with purchase of S&B