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.
#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.
Matching moments
17:35 MIN
Major language enhancements from Java 12 to 17
Beam Me Up, Java! Unraveling the Warp-Speed Evolution: A Journey through Java LTS Versions 11 to 21
05:29 MIN
Using Java 17 records with Jakarta EE 9 and 10
Get Ready for Jakarta EE 10!
03:16 MIN
What's new in the Java 21 LTS release
Beam Me Up, Java! Unraveling the Warp-Speed Evolution: A Journey through Java LTS Versions 11 to 21
03:05 MIN
Bootstrapping a new project with modern Java
Kubernetes Native Java
06:19 MIN
Examining the future of Java and its competition
Best of Java 15 and beyond—my favorite features
03:10 MIN
Overview of major Java development projects
Best of Java 15 and beyond—my favorite features
09:52 MIN
How Java introduces new features safely
The Cool Thing about Cool Things in Java 16 & 17 LTS
09:05 MIN
Q&A on virtual threads, reactive programming, and Java 21
Introduction and pitfalls of Java's new concurrency model
Using Java 17 latest features in real world projectsWelcome 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...
Luis Minvielle
Top 10 Java LibrariesJava 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 ...
Michael Inden
Modern Java RecordsIn 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...
From learning to earning
Jobs that call for the skills explored in this talk.