Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OCP Java SE 8 Programmer II - page 224 - error (Sybex)  RSS feed

 
Marc-André Parent
Greenhorn
Posts: 9
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Page 224, first paragraph of the "Exam Essentials" section.
In the last sentence "methods" should be "functional interfaces"
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've noted this on our private list of things that could be clearer. Technically it isn't wrong as there is a single abstract method in a functional interface that has those properties.
 
Marc-André Parent
Greenhorn
Posts: 9
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Granted that there is a single method on the functional interfaces, but the context is talking about functional interfaces and not their methods.
"The most common functional interfaces are Supplier, Consumer, Function and Predicate.  There are also binary versions and primitive versions of many of these..."
Am I right by saying that by "binary versions" you mean BiConsumer, BiFunction, BiPredicate?
And for "primitive versions" you mean functional interfaces such as: IntSupplier, IntConsumer, LongSupplier, LongConsumer?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!