Ron Veen

Using Java 17 latest features in real world projects

What if you could replace complex try-catch blocks with elegant, type-safe code? Learn how Java 17's sealed classes and pattern matching make it possible.

Using Java 17 latest features in real world projects
#1about 1 minute

Exploring new language features from Java 12 to 17

An overview of the five key language features introduced between Java 12 and the long-term support release of Java 17.

#2about 3 minutes

Using switch expressions for cleaner conditional logic

The switch expression modernizes conditional logic by returning a value, using arrow syntax, and ensuring exhaustive cases.

#3about 3 minutes

Simplifying multiline strings with text blocks

Text blocks use triple quotes to create multiline strings, eliminating the need for manual concatenation and escaping characters.

#4about 6 minutes

Creating immutable data carriers with records

Records provide a concise syntax for creating immutable data classes, automatically generating constructors, accessors, and essential methods.

#5about 4 minutes

Controlling class hierarchies with sealed classes

Sealed classes and interfaces restrict which other classes can extend or implement them, enabling more precise domain modeling and exhaustive pattern matching.

#6about 4 minutes

Deconstructing objects with pattern matching

Pattern matching simplifies object deconstruction by combining type checks and variable extraction in constructs like `instanceof` and switch expressions.

#7about 2 minutes

Refactoring asynchronous code with modern Java features

A practical example demonstrates how to combine sealed interfaces, records, and switch expressions to refactor complex asynchronous logic into more readable code.

#8about 6 minutes

Q&A on framework support, Kotlin, and the JMM

The Q&A session addresses framework support for records in Spring and JPA, the absence of a builder pattern, comparisons to Kotlin, and recent changes to the Java Memory Model.

Related jobs
Jobs that call for the skills explored in this talk.

d

Saby Company
Delebio, Italy

Junior

asasd

Expire

Remote
Junior

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
BB
Benedikt Bischof
Using Java 17 latest features in real world projects
Welcome to this issue of the WeAreDevelopers Live Talk series. This article recaps an interesting talk by Ron Veen who introduced the audience to some of the most interesting features that got added to the Java language.About the speaker:Ron is a hig...
Using Java 17 latest features in real world projects
LM
Luis Minvielle
Top 10 Java Libraries
Java has been around for so long, in part, because it has a large ecosystem. While all of Java's core components are exceptionally robust, the abundance of Java libraries is the one that stands out the most. So… what are the must-know Java libraries ...
Top 10 Java Libraries
MI
Michael Inden
Modern Java Records
In this blog, I will present Records, one of my favorite features of modern Java. Records represent a simplified form of classes whose methods are implicitly derived from the attributes defined as constructor parameters. A record constitutes a collec...
Modern Java Records
BB
Benedikt Bischof
Java Basics
In 1991,James Gosling invented a high-level, general-purpose, object-oriented andsecure programming language and called it OAK (after a tree in front of hiswindow). And four years later, in 1995, it was renamed after one of the GreaterSunda Islands: ...
Java Basics

From learning to earning

Jobs that call for the skills explored in this talk.

Java Developer

Java Developer

stagingcomp8221
Hamburg, Germany

Remote
70-80K
Intermediate
Docker
Angular
Spring Boot