ProLesson 13.2Intermediate3 min readUpdated 30 October 2026
Java 8: lambdas, streams, Optional and java.time
The release that changed how Java is written. A recap of lambdas and streams, plus default methods and the modern date-time API.
Java 8 (2014) was the biggest change to the language since generics. Interviewers still ask "what's new in Java 8?" because so much modern code builds on it.
01The headline features
| Feature | What it gave us | Covered in |
|---|---|---|
| Lambdas | Pass behaviour as values | Lesson 8.1 |
| Functional interfaces | Function, Predicate, Supplier, Consumer… | Lesson 8.2 |
| Method references | String::length | Lesson 8.3 |
| Stream API | Declarative data processing | Lessons 8.4–8.8 |
| Optional | Explicit "maybe no value" | Lesson 8.7 |
| Default and static methods in interfaces | Interfaces can evolve | Lesson 4.7 |
java.time | A modern, immutable date-time API | This lesson |
CompletableFuture | Composable async code | Lesson 9.8 |
| Metaspace | Replaced PermGen | Lesson 10.2 |
Loading the rest of the lesson…