World Congress 2023 Sep 21, 2023

Modern Java: This is not your father's Java anymore

Ron Veen

Think Java is just verbose legacy code? Discover how virtual threads, records, and pattern matching transform modern Java into a highly scalable, data-oriented powerhouse.

Pause
Mute Enter Fullscreen
#1 about 4 min

Using Java records as immutable lightweight data carriers

Defining immutable records reduces boilerplate code and prevents unintended data manipulation via reflection.

#2 about 3 min

Controlling object inheritance with sealed classes and interfaces

Specifying permitted subclasses enables fine-grained control over inheritance hierarchies and compiler exhaustiveness checks.

#3 about 1 min

Simplifying conditional logic using pattern matching predicates

Extracting flow-scoped pattern variables directly from predicate tests removes the need for explicit casting.

#4 about 2 min

Enhancing switch statements with exhaustive pattern matching

Treating objects as data through exhaustive compiler checks eliminates the need for default switch clauses.

#5 about 3 min

Deconstructing data structures with record pattern matching

Unpacking record variables directly within switch statements simplifies nested object extraction and improves readability.

#6 about 4 min

Scaling concurrent applications using lightweight virtual threads

Managing threads directly within the JVM allows unpooled execution of millions of blocking operations efficiently.

#7 about 2 min

Managing concurrent task lifecycles with structured concurrency

Defining specific shutdown policies for independent task branches coordinates exceptions and execution success automatically.

#8 about 2 min

Replacing globally mutable thread locals with scoped values

Providing immutable data exclusively to specific method scopes improves safety and debugging over legacy thread locals.

#9 about 2 min

Bootstrapping programs quickly with unnamed classes

Removing mandatory execution keywords and class wrappers lowers the barrier to entry for structural scripts.

#10 about 2 min

Ignoring unused parameters securely with unnamed variables

Assigning unused callback variables and generic exceptions to underscores clarifies intent and avoids inspection warnings.

#11 about 1 min

Accessing ordered list endpoints with sequence collections

Interacting with list endpoints via sequenced methods prevents index calculation errors on dynamic lists.

#12 about 2 min

Processing dynamic text inputs directly via string templates

Delegating text interpolation to processor interfaces mitigates syntax errors and formats complex queries safely.

#13 about 4 min

Implementing data-oriented programming architectures in Java

Combining immutable generic structures with exhaustive logic drives application flow purely through deterministic types.

Matching moments

3:16 min

Significant performance and language features launching in Java 21

Jonathan Vila · LIVE

2:30 min

Addressing verbosity and missing features in modern Java

Jonathan Vila · LIVE

1:47 min

Reviewing modern Java features from version 12 to 17

Ron Veen Ron Veen · WWC 2022

2:27 min

Summarizing the path forward for Java evolution

Michael Inden · LIVE

2:09 min

Overview of the Java features presentation

Michael Inden · LIVE

17:35 min

Major language and productivity upgrades from Java 12 to 17

Jonathan Vila · 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

Understanding LLM Architectures: Inside the Design of Modern Models

Jofia Jose Prakash

Enterprise AI Architect at American Chemical Society

Jofia Jose Prakash
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

Offloading IoT State: Solving the Memory Crisis on Legacy Hardware

Pravin Nagare

Senior Software Engineer, Roku

Pravin Nagare