Skip to Content
Learn Java 17 Programming - Second Edition
book

Learn Java 17 Programming - Second Edition

by Nick Samoylov
July 2022
Beginner
748 pages
15h 1m
English
Packt Publishing
Content preview from Learn Java 17 Programming - Second Edition

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Java, 4th Edition

Learning Java, 4th Edition

Patrick Niemeyer, Daniel Leuck
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
The Well-Grounded Java Developer, Second Edition

The Well-Grounded Java Developer, Second Edition

Benjamin Evans, Martijn Verburg, Jason Clark

Publisher Resources

ISBN: 9781803241432Supplemental Content