World Congress 2022 Jun 15, 2022

Using Java 17 latest features in real world projects

Ron Veen

With Spring Boot 3 enforcing Java 17, upgrading is no longer optional. Discover how records, sealed classes, and pattern matching natively eliminate boilerplate and secure your real-world applications.

Pause
Mute Enter Fullscreen
#1 about 2 min

Reviewing modern Java features from version 12 to 17

Anticipating structured concurrency in newer versions provides context for adopting mature language features from recent long-term support releases.

#2 about 3 min

Using switch expressions to return values directly

Replacing the classic switch statement with structured expressions removes boilerplate return calls and forces exhaustive outcome mapping.

#3 about 4 min

Managing multiline strings securely with text blocks

Adopting triple-quoted text blocks removes the need for complex string concatenation and automatically manages intentional formatting whitespace.

#4 about 6 min

Creating immutable data carriers using Java records

Declaring immutable data structures via records generates essential methods automatically and enhances serialization security by enforcing constructor-based initialization.

#5 about 4 min

Restricting object inheritance hierarchy using sealed classes

Specifying permitted subclasses via sealed and non-sealed modifiers gives compilers complete visibility into class inheritance trees.

#6 about 5 min

Extracting variables via instance pattern matching techniques

Applying pattern matching predicates directly evaluates object types and extracts them into variables without requiring subsequent manual casting.

#7 about 3 min

Integrating new language features for readable async code

Combining sealed interfaces, records, and pattern matching refactors complex error-handling scenarios into highly readable and exhaustive switch statements.

#8 about 7 min

Addressing framework compatibility and overall language evolution

Evaluating framework dependencies like Spring Boot and JPA limitations clarifies the practical integration landscape alongside general garbage collector optimizations.

Matching moments

3:37 min

Choosing Java 17 for modern Spring Boot applications

Josh Long · WWC 2022

17:35 min

Major language and productivity upgrades from Java 12 to 17

Jonathan Vila · LIVE

2:03 min

Migrating applications from Java 11 to Java 17

Daniel Strmečki · LIVE

3:16 min

Significant performance and language features launching in Java 21

Jonathan Vila · LIVE

4:55 min

Discussing modern Java language evolution and syntax innovations

Daniel Strmečki · LIVE

2:09 min

Overview of the Java features presentation

Michael Inden · LIVE

Upcoming sessions on this topic

Open session

World Congress 2026 North America

Look What Java Can Do Now: Live-Coding a GenAI MCP Server with the JAQ Stack

Suren Konathala

Senior Engineering Leader, Marketing & AdTech, AI GTM & Digital Experience Platforms, Java x AI

Suren Konathala
Open session

World Congress 2026 North America

When Humans Stop Writing Code: Rethinking Languages, Compilers, and Responsibility

Simon Auer

Organizer of flutter vienna meetup and CEO of marqably

Simon Auer
Open session

World Congress 2026 North America

From Legacy to Longevity – How a 17-Year-Old System stayed Modern

Alexander Arians

Empowering Engineers to drive innovation

Alexander Arians
Open session

World Congress 2026 North America

API = Some REST and HTTP, right? RIGHT?!

Rustam Mehmandarov

Passionate computer scientist

Rustam Mehmandarov
Open session

World Congress 2026 North America

From Cloud Native to Multi-Cloud Native: Write Once, Deploy Anywhere

Sandeep Pal

Principal Member of Technical Staff at Salesforce

Sandeep Pal
Open session

World Congress 2026 North America

Don’t kill my Vibes - Simple Steps to Stay Secure when Vibe Coding

Isaac Evans

Co-founder & CEO of Semgrep

Isaac Evans