5 topics · 0/5 read
Java 8 to Java 25 Features
Lambdas and functional interfaces, the Streams API, Optional, records, sealed classes and pattern matching, and virtual threads.
Lambdas, Functional Interfaces and Method References
Lambdas, introduced in Java 8, are short implementations of functional interfaces: interfaces with exactly one abstract method. Interviewers ask about the built-in functional interfaces, method references and the effecti
Read nowThe Streams API
The Streams API processes collections declaratively with map, filter, collect and friends. Stream coding questions (group by, top N, frequency counts) are standard in Java backend interviews, along with lazy evaluation a
Read nowOptional: Avoiding NullPointerException
Optional is a container that may or may not hold a value, designed as a return type that makes "no result" explicit. Interviewers check that you use it well: no get() without a check, and no Optional fields or parameters
Read nowRecords, Sealed Classes and Pattern Matching
Modern Java (17 to 25) added records for data carriers, sealed classes to restrict hierarchies, and pattern matching in instanceof and switch. Interviewers increasingly ask about them because they change how DTOs and dom
Read nowVirtual Threads (Project Loom)
Virtual threads, final in Java 21, are lightweight threads managed by the JVM rather than the OS. They let simple blocking code handle huge numbers of concurrent requests. Interviewers ask how they work, when they help,
Read now