aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Question 58 Quiz B in master exam of K&B Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Question 58 Quiz B in master exam of K&B" Watch "Question 58 Quiz B in master exam of K&B" New topic
Author

Question 58 Quiz B in master exam of K&B

Sanjay Singhaniya
Greenhorn

Joined: Feb 21, 2009
Posts: 25
It has a line mentioning
Arrays.asList(16,8,42,15,4,23)

I am getting compiler error on this stmt. But the answer to the question is not "compilation fails".
I have attached the screenshot.
Please explain.


[Thumbnail for 58.jpg]

Stephen Davies
Ranch Hand

Joined: Jul 23, 2008
Posts: 352
You are correct, the code compiles and prnts 42. I suppose it is an error.



be a well encapsulated person, don't expose your privates, unless you public void getWife()!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question 58 Quiz B in master exam of K&B