Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question 58 Quiz B in master exam of K&B

 
Sanjay Singhaniya
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
58.jpg
[Thumbnail for 58.jpg]
 
Stephen Davies
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct, the code compiles and prnts 42. I suppose it is an error.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic