Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
Oracle Certified Professional Java SE 8 Programmer II potential error page 374
Yuri Savchenko
Greenhorn
Posts: 13
posted 5 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello!
I'm not sure, but it looks like an errata for me.
Page 374. In "Requirements for reduce() Arguments" section
The identity must be defined such that for all elements in the stream u , [b]combiner[/b].apply(identity, u) is equal to u .
looks like it should be
The identity must be defined such that for all elements in the stream u , [b]accumulator[/b].apply(identity, u) is equal to u .
Elaine Byrne
Ranch Hand
Posts: 91
1
posted 5 years ago
1
Number of slices to send:
Optional 'thank-you' note:
Send
I'm a bit hazy about this too, and it seems to come up in a few of the "Similar Threads" listed for this. I think the one at
https://coderanch.com/t/675619/certification/Errata-OCP-Java-SE-Study
may be the most relevant, and perhaps clarifies it a little for me
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Threads : Chap 7, Page 374 HARD TO FOLLOW
Requirements needed to properly use reduce() on parallel streams (Boyarsky,selikoff)
OCP Java 8 Study Guide - Requirements for reduce arguments, page 374
Parallel Reduction in Java 8 Streams API
Oracle Certified Java Professional 7 ( OCP ) or Java SE 7 Programmer II
More...