Chapter 14Lambda Built-in Functional Interfaces

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

  • Lambda Built-in Functional Interfaces
    • Use the built-in interfaces included in the java.util.function package such as Predicate, Consumer, Function, and Supplier
    • Develop code that uses primitive versions of functional interfaces
    • Develop code that uses binary versions of functional interfaces
    • Develop code that uses the UnaryOperator interface

 

  1. Fill in the blanks: The____________ functional interface does not take any inputs, while the____________ functional interface does not return any data.

    1. IntConsumer, LongSupplier ...

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.