What's New in Java 21
This course provides an overview of the most important features in Java 21. It will teach you what APIs have changed, and it covers the introduction of pattern matching in switch, record patterns, and virtual shreads.
What you'll learn
Java is still steadily delivering on its promise to release twice every year. Java 21 was the second release in 2023 and is designated as a long-term supported release version by many JDK vendors. In this course, What's New in Java 21, you'll get an overview of the most important features in Java 21 and learn to apply those features in your own codebase. First, you’ll explore changes to the core Java APIs. Next, you’ll discover how pattern matching in switch works; combined with record patterns, this makes for a powerful new way of writing Java code. Finally, Java 21 brings virtual threads: a new way of writing concurrent code without the drawbacks of existing threads or competing asynchronous approaches. When you’re finished with this course, you will be able to use these features in your own applications.