« All Java trainings

Combined Training Java 17 + 21: What’s New Since Java 11?

Duration: 4 days
Format: virtual or on-site

Overview

In this 4-day intensive course, you'll learn all relevant innovations introduced in Java versions 12 to 21 – compactly, clearly, and with a strong focus on practical application in everyday project work.

Highlights from the Java 17 Module:

Discover how modern language features like Records, Switch Expressions, Text Blocks, Pattern Matching for instanceof, and Sealed Classes can make your code more elegant and maintainable.

You'll also explore valuable additions like Helpful NullPointerExceptions and new methods in core APIs such as String, Stream, and Files.

We’ll also cover Garbage Collection improvements (G1, Parallel GC, ZGC, Shenandoah) and performance enhancements like CDS Archives and specialized TreeMap implementations.

Highlights from the Java 21 Module:

In the second part, you’ll explore features introduced in Java 18 to 21 – including Virtual Threads, Record Patterns, and Pattern Matching for switch, enabling more concise and expressive logic.

You’ll also get to know the Sequenced Collections API, UTF-8 by default, the Simple Web Server, and more improvements across standard APIs.

Once again, we’ll dive into Garbage Collector enhancements (especially Generational ZGC) and performance features like alternative locking mechanisms.

Exercises & Outlook:

Through practical exercises based on real-life scenarios, you’ll immediately apply what you’ve learned and anchor your knowledge.

The course concludes with a look at preview features in Java 21: Structured Concurrency, Scoped Values, the Foreign Function & Memory API, and the Vector API – a glimpse into Java’s exciting future.

Request in-house training »

Target Audience

This course is for Java developers who want to stay current – hands-on, accessible, and packed with “aha” moments.

Whether you're planning a migration to Java 17 or 21, or you already have first-hand experience – this combo course gives you a comprehensive understanding of the latest LTS versions.

Course Details

Duration: 4 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:  € 8.090,–
plus trainer travel expenses
Virtual:  € 6.660,–
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.

Part 1: Java 12-17

Major Features:
  • switch Expressions
  • Text Blocks
  • Records
  • Pattern Matching for instanceof
  • Sealed Classes
  • Strongly Encapsulate JDK Internals
Additional Enhancements:
  • Helpful NullPointerExceptions
  • Hidden Classes
  • Warnings for value-based classes
  • Context-specific deserialization filters
API Improvements:
  • New String methods
  • New Stream methods
  • New Files methods
  • New ByteByffer methods
  • The Teeing collector
  • Hex formatting and parsing utility
Garbage Collection:
  • Improvements to G1 and Parallel GC
  • New: ZGC and Shenandoah
  • Elastic Metaspace
Performance
  • Default and dynamic CDS archives
  • Non-volatile mapped byte buffers
  • Specialized TreeMap implementations
  • Decoupling of Compressed Oops and Compressed Class Pointers
Tools:
  • JFR event streaming
  • Packaging tool
Deprecations:
  • Thread suspend(), resume()
  • ThreadGroup stop(), destroy(), isDestroyed(), setDaemon(), and isDaemon()
  • Biased locking
  • And more...

Part 2: Java 18-21

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