wood burning stoves 2.0*
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
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" };
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error again ( 4th time, same site ) Mr. Hareet! What will you say?