Type Pattern Matching with instanceof
Explains Java's type pattern matching with instanceof, a feature from recent Java versions, using examples to simplify type checking and casting.
Nicolai Parlog (nipafx) is a Java Developer Advocate at Oracle who shares deep insights on Java through blogs, talks, books, videos, and open-source projects, helping developers learn and grow.
302 articles from this blog
Explains Java's type pattern matching with instanceof, a feature from recent Java versions, using examples to simplify type checking and casting.
An in-depth look at pattern matching in Java, explaining its general principles and future possibilities beyond current type patterns.
Brian Goetz discusses Java's design quirks, problematic defaults like serialization and null, and historical trade-offs in its evolution.
Overview of recent JDK development discussions, focusing on four pattern matching proposals: documentation, array patterns, destructuring, and for-each loops.
A guide to organizing a React application within a standard Java/Spring Boot project folder structure (src/main/js, src/test/js).
A satirical look at a dystopian future where killer robots run on Java 128, exploring modern Java features like HTTP/2, security, and Project Loom.
Explores a bug in Java 16's Stream::mapMulti when used to group elements, acting as a reverse flatMap operation.
Explains Java 16's Stream::mapMulti method as a faster alternative to flatMap, with code examples and performance considerations.
A cheat sheet and guide for understanding and using the Java module system, including command-line examples and a sample project.
Announcing JUnit Pioneer 1.0, a JUnit 5 extension pack with annotations for testing system properties, locales, and more.
A 25-hour live stream event featuring deep dives, interviews with Java experts, and discussions on Java's ecosystem, future, and career advice.
An interview with Oliver Drotbohm, a Spring expert, discussing software modularity, architecture, and the Moduliths project.
A talk exploring Java's evolution from version 17 to 21, covering new features like virtual threads and pattern matching, with a linked code repository.
A technical guide detailing the process and benefits of upgrading from Java 8 to newer versions, based on real-world experience.
A comprehensive guide to Java 13's new features, including text blocks, switch expressions, and migration considerations from earlier versions.
Explains how to use Application Class-Data Sharing (AppCDS) in Java 13 to improve JVM launch times and reduce memory footprint.
A comprehensive guide to the new switch expressions introduced as a preview feature in Java 13, covering syntax, usage, and improvements over traditional switch statements.
A proposal for a maturity model to classify Java tools and libraries based on their level of support for the Java Platform Module System (JPMS).
Explains how to use Java's --enable-preview flag to experiment with preview language features before they are finalized in a release.
A guide to using text blocks, a Java 13 preview feature for multi-line string literals, covering syntax and examples.