CHAPTER 5

image

Lambda Built-in Functional Interfaces

Certification Objectives

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

The java.util.function has numerous built-in interfaces. Other packages in the Java library (notably java.util.stream package) make use of the interfaces defined in this package. For OCPJP 8 exam, you should be familiar with using key interfaces provided in this package. ...

Get Oracle Certified Professional Java SE 8 Programmer Exam 1Z0-809: A Comprehensive OCPJP 8 Certification Guide 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.