# Java Level 6: Functional Java

> Level 6: Functional Java of the LoWisa Java course: Lambdas, Streams, Functional Data Processing. 3 lessons and 9 ideas, each explained in one line.

Functional Java is level 6 of 16 of the [LoWisa Java course](/courses/java/). It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

## Lambdas

- **Lambda syntax.** A **lambda** writes a function inline: order -> order.total(): behaviour passed as a value.
- **Functional interfaces.** A lambda implements a **functional** interface: one abstract method, like Predicate or Function.
- **Method references.** A **method** reference names an existing method as the lambda: Order::total reads cleaner than the arrow.

## Streams

- **The stream pipeline.** A **stream** pipelines a collection: filter, map, then collect: declarative data processing.
- **Lazy until terminal.** Intermediate operations are **lazy**: nothing runs until a terminal operation like collect or count asks.
- **Collectors.** **Collectors** fold streams into results: toList, groupingBy and joining cover most reporting needs.

## Functional Data Processing

- **Optional.** **Optional** wraps a maybe-missing value, forcing callers to decide the empty case explicitly.
- **Side-effect-free pipelines.** Stream lambdas should be **pure**: mutating shared state inside a pipeline breeds subtle, parallel-hostile bugs.
- **Streams versus loops.** Streams shine for transform-and-collect; a plain **loop** still wins for early exits and index play: choose readability.

## Before and after this level

- **Before:** [Level 5: Exceptions](/courses/java/level-5-exceptions/): Checked and Unchecked Exceptions, Error Propagation, Reliable Exception Design.
- **Next:** [Level 7: Files & I/O](/courses/java/level-7-files-and-i-o/): Files and Streams, NIO, Serialisation and Data Handling.

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See [Checkpoints and flashcards](/help/checkpoints-and-flashcards/).

## Frequently asked questions

### What does Java Level 6: Functional Java cover?

Lambdas, Streams, Functional Data Processing: 3 lessons and 9 ideas.

### What should I know before this level?

The level before it, Level 5: Exceptions, which covers Checked and Unchecked Exceptions, Error Propagation, Reliable Exception Design.

## Learn Java on your phone

The first level is free. LoWisa is on Google Play and the App Store.

---

Source: https://lowisa.dev/courses/java/level-6-functional-java/ · Updated 2026-11-16
