• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Sybex:Java 8 OCA/OCP Practice Tests Chapter 15 question 2 explanation typo

 
Ranch Hand
Posts: 216
11
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Question at page 256; Explanation and typo at page 507
2. Which can fill in the blank to have the code print true?



A. anyMatch
B. allMatch
C. noneMatch
D. None of the above

Typo in this explanation:"For both the allMatch() and noneMatch() operators, they see that the FIRST element in the stream does not match and the code prints false."
Typo: noneMatch sees that the 6 element match and prints false, NOT THE FIRST

by alinvlad05
 
author & internet detective
Posts: 42173
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Confirmed and added to the errata. Thanks for noticing!
 
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic