Chapter 13: Functional Programming

This chapter brings you into the world of functional programming. It explains what a functional interface is, provides an overview of the functional interfaces that come with JDK, and defines and demonstrates Lambda expressions and how to use them with functional interfaces, including using method reference.

The following topics will be covered in this chapter:

  • What is functional programming?
  • Standard functional interfaces
  • Functional pipelines
  • Lambda expression limitations
  • Method reference

By the end of the chapter, you will be able to write functions and use them for Lambda expressions in order to pass them as method parameters.

Technical requirements

To be able to execute the code examples provided in this ...

Get Learn Java 17 Programming - Second Edition 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.