Chapter 15Java Stream API

THE OCP EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:

  • Java Stream API
    • Develop code to extract data from an object using peek() and map() methods including primitive versions of the map() method
    • Search for data by using search methods of the Stream classes including findFirst, findAny, anyMatch, allMatch, noneMatch
    • Develop code that uses the Optional class
    • Develop code that uses Stream data methods and calculation methods
    • Sort a collection using Stream API
    • Save results to a collection using the collect method and group/partition data using the Collectors class
    • Use flatMap() methods in the Stream ...

Get OCA / OCP Java SE 8 Programmer Practice Tests now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.