« All Java trainings

Mastering Java 21 – All New Features Since Java 17

Duration: 2 days
Format: virtual or on-site

Overview

In this two-day course, you'll learn all the essential new features introduced in Java versions 18 through 21 – compact, hands-on, and clearly explained.

We focus on modern language features like Record Patterns, Pattern Matching for switch, and the new Sequenced Collections API. You’ll see how these features help make your code cleaner, more expressive, and easier to maintain.

We’ll also explore numerous standard API improvements, garbage collection optimizations, and under-the-hood performance enhancements – all of which can provide real benefits in your day-to-day work.

Through hands-on exercises based on real-world project scenarios, you'll apply what you've learned immediately and internalize it for the long term.

To wrap up, we’ll look at what’s ahead: Structured Concurrency, Scoped Values, and the Foreign Function & Memory API are still preview features in Java 21 – but they already hint at where Java is heading.

Request in-house training »

Target Audience

This course is for Java developers who want to stay up to date or deepen their knowledge of Java 21 – clear, hands-on, and packed with aha moments.

Whether you're planning a migration to Java 21 or already have some experience with it, you'll learn how to effectively leverage the new language features, API enhancements, and performance improvements in your everyday work.

The course is also ideal for teams already using Java 21 in production and looking to dive deeper into specific features or best practices.

Course Details

Duration: 2 days
Date by arrangement
Exclusively for your team
Delivered on-site or online
Customizable content
Language: English or German
Certificate of completion included

Pricing

On-site:  € 4.360,–
plus trainer travel expenses
Virtual:  € 3.590,–
Prices exclude VAT and any customization fees.

Agenda

We won’t follow the listed order strictly. Instead, we’ll alternate between major features, smaller topics, and theory – keeping the course engaging and balanced, and helping you better retain the material.

Major Features:

  • Virtual Threads
  • Sequenced Collections
  • Record Patterns
  • Pattern Matching for switch

Additional Features:

  • UTF-8 by default
  • Simple web server
  • Code snippets in Java API documentation
  • New system properties for System.out and System.err encoding
  • Compiler warnings for lossy type casts
  • Key Encapsulation Mechanism API

Bugfixes:

  • IdentityHashMap's remove() and replace() methods use object identity

API Enhancements:

  • New methods for String, StringBuilder, and StringBuffer
  • New methods for Character
  • New methods for Math
  • HashMap.newHashMap()
  • Additional date-time formats

Garbage Collection:

  • String deduplication for ZGC, SerialGC, ParallelGC
  • G1 enhancements
  • Generational ZGC

Performance:

  • Alternative fast-locking scheme

Deprecations & Removals:

  • Deprecate finalization for removal
  • Locale constructors
  • URL constructors
  • Thread.stop(), suspend(), resume()
  • ThreadGroup
  • Dynamic loading of agents

Looking Ahead:

  • Structured Concurrency
  • Scoped Values
  • Vector API
  • Foreign Function & Memory API
  • Unnamed Patterns and Variables
  • Comptact Classes and Instance Main Methods

Request In-House Training

Inquiry Training Specific Course (#31)

Your Trainer: Sven Woltmann

Sven Woltmann

I’m a Java expert with over 20 years of experience – as a developer, architect, CTO, performance coach, and trainer.

I’ve designed enterprise-scale systems for companies like 1&1, IONOS, and ICE Services, modernized legacy apps, and helped teams build robust, maintainable, and high-performance Java software.

With HappyCoders.eu, I’ve built one of the most widely read Java blogs in the German-speaking world. I speak at conferences and Java User Groups – and often receive praise for making complex technical topics easy to understand.

What you’ll get from my courses:

  • Extensive experience: Deep Java knowledge with real-world expertise
  • Practical focus: Plenty of hands-on exercises drawn from actual project work
  • Knowledge sharing: Space for your questions, discussions, and real-life challenges
  • Tailored to your team: Content can be flexibly adapted to your goals

I don’t just teach features – I show you how to develop better software with a deep understanding of Java.

More about me »

Format & Requirements

  • Learning method: Short theory blocks followed by immediate hands-on practice – with exercises, code examples, and real-world scenarios.
  • Materials: All course materials (slides and code) are provided at the beginning of the course.
  • Adaptability: I adjust the course pace to the group’s knowledge level when needed. In some cases, not all topics may be covered in full.
  • Technical requirements: Your own laptop or workstation with Java 21 (or later) and an IDE (I recommend IntelliJ IDEA).

Related Trainings