Java course

Java Level 6: Functional Java

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

Updated 2026-11-16

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

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.

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.