wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Bonus Master Exam 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 "Bonus Master Exam" Watch "Bonus Master Exam" New topic
Author

Bonus Master Exam

Jemima Job
Greenhorn

Joined: Jun 22, 2003
Posts: 16
This question in the bonus Master Exam for K&B book, I don't think the answer selected as correct is true, because I compiled successfully but during runtime it threw nullpointerexception.
1. long a1[][];
2. long []a2[];
3. a2 = new long[3][];
4. a1 = a2;
5. System.out.println(a1[1][0]);

Selected answer is

Compilation fails at line 4.
Marlene Miller
Ranch Hand

Joined: Mar 05, 2003
Posts: 1391
Hi Jemima. The second exam has this one error. Here are some comments by other people. Here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bonus Master Exam
 
Similar Threads
exam lab gc question
local arrays
learnkey mock exam doubt
Master Exam Question - Incorrect answer?
Possible error in Master Exam...