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 Mock Exam Errata and the fly likes Error again ( 4th time, same site ) Mr. Hareet! What will you say? 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 » Mock Exam Errata
Bookmark "Error again ( 4th time, same site ) Mr. Hareet! What will you say?" Watch "Error again ( 4th time, same site ) Mr. Hareet! What will you say?" New topic
Author

Error again ( 4th time, same site ) Mr. Hareet! What will you say?

Arijit Daripa
Ranch Hand

Joined: Aug 09, 2008
Posts: 142
Mr. Hareet!
One of the questions in
http://www.irixtech.com/java/scjp/mock-exam/practice-test-2 is



Your answer is (a) and (c).
(a) Java is allowing us to assign null to primitives!
(c) Returning from a method with return type null!


SCJP 5
Ashish Hareet
Ranch Hand

Joined: Jul 14, 2001
Posts: 375
Modified option b to be correct option

public String[ ] getNameList( ) {
return new String[ ] { "Him", "Me", "She", "I" };
}
 
 
subject: Error again ( 4th time, same site ) Mr. Hareet! What will you say?
 
Similar Threads
SCJP (now OCPJP) 1.6 Exam No. 1Z0-851, how to prepare?
IrixTech Mock Exam
Error again ( 3rd time, same site). Mr. Hareet! Come on!
Error in a Mock Test
Error again ( 2nd time, same site ). Mr Hareet! Where are you?