Modern Java: records, streams and lambdas
8 steps · about 3 h 3 min · Intermediate
- Lambda Expressions - Dev.java (guide, Dev.java (Oracle), 40 min)
The official series teaches lambdas step by step, so it comes first. Streams and records both build on it.
- Java 8 Lambda Basics 24 - More About Streams (video, Java Brains (YouTube), 10 min)
A short video from a well-known Java teacher. It shows how lambdas drive stream operations, and it also covers parallel processing.
- Java Stream API tutorial: How to create and use Java streams (article, InfoWorld, 20 min)
<cite index="3-4">It covers creating streams from collections, a first look at a pipeline, and how lambdas and method references fit in.</cite>
- The Java Stream API Tutorial (tutorial, Baeldung, 35 min)
<cite index="5-1">A practical walk through Java Streams, from their Java 8 introduction to later enhancements</cite>. It shows stream creation and pipelines in detail.
- Complete guide to Java Stream API in pictures and examples (guide, Annimon blog, 30 min)
The diagrams help you see what each operation does to the data. The page also covers collectors such as groupingBy, mapping and teeing.
- Java Streams Tutorial: Every Stream Guide Grouped by Task (reference, HowToDoInJava, 30 min)
Task-based examples for sorting, grouping and comparators. Use them to practise and to look things up later.
- Records (JEP 395) - javaalmanac.io (reference, javaalmanac.io, 10 min)
<cite index="34-7">It explains that a constructor, accessors, equals, hashCode and toString come for free</cite>. It also lists what records can't do.
- Record Patterns in Java 21 - Sip of Java - Inside.java (article, Inside.java (Oracle), 8 min)
The last step shows how records combine with pattern matching in Java 21, where you can deconstruct a record directly.