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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.