Functional Programming: Functions and Tuples

Learn about features of functions and tuples added in Java 8 for functional programming.

We'll cover the following

Overview

Java 8 manages to add many features of the functional languages without significantly changing the Java language.

When lambda expressions, method-references, the Stream interface, and immutable data-structures are combined, Java enables a form of functional programming (FP).

For the purposes of this book, the three pillars of FP are as follows:

  • Functions
  • Immutability
  • Concurrency

Functions

Get hands-on with 1200+ tech skills courses.