
Modern Java Guide to Records Sealed Types and Patterns
Write idiomatic Java 25 with records, sealed types, pattern matching, streams and virtual threads, and learn which old habits to drop first.
Tag
66 posts

Write idiomatic Java 25 with records, sealed types, pattern matching, streams and virtual threads, and learn which old habits to drop first.

Build, configure, test and package a Spring Boot 4 service, then see what separates a demo from a service you can run in production.

Map entities, control fetching and remove the N plus 1 problem in Hibernate 7, with the settings and habits that keep JPA predictable.

Map what you know from Spring Boot to Quarkus 3, from CDI and RESTEasy to dev mode and native images, and see where the models really differ.

A working reference to JUnit 5 and the JUnit 6 line: lifecycle, assertions, parameterized tests, extensions and the habits that keep suites fast.

Build a Vaadin web UI in Java: views, layouts, Binder forms, lazy Grids, push updates, security, testing and the production build in one worked app.

Why List.of, Arrays.asList and Stream.toList reject changes with UnsupportedOperationException, and how to get a list you can modify.

Learn how to start threads, wait for them, share results with futures and move to executors and virtual threads, with the rules that keep code correct.

Follow Java code from source to bytecode, class loading, interpretation and JIT compilation, and see why the JVM is slow at first and fast later.

Stop path traversal by resolving user-supplied names against a base directory, normalizing and checking the result, and avoiding user input in paths.

Tell ClassNotFoundException from NoClassDefFoundError, then find the missing jar, the wrong scope or the failed static initializer behind each.

Map the class file version in the error to a Java release, then align the runtime, the compiler release flag and the toolchain so the mismatch cannot return.