• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

OCP study guide error

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello. I want to report something I found in the book OCP Java SE 11 Programmer II (Sybex). At page 221, when working with primitive streams, the IntSummaryStatics is introduced (paragraph Summarizing Statistics). At the end of the paragraph, it is stated: "If the streams were empty, we'd have a count and sum of zero. The other methods would return an empty optional". What I can see is that the other methods don't return an optional, but a primitive (e.g., getAverage returns a double).


Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic