Daniel Strmečki
"What´s New for Developers Moving from Java 11 to 17?"
#1about 4 minutes
Understanding the new Java LTS release cadence and licensing
Java's long-term support (LTS) release cycle has shifted from every three years to every two years, and Oracle JDK 17 introduces a new no-cost license for commercial use.
#2about 3 minutes
Using text blocks for more readable multiline strings
Text blocks simplify creating multiline strings, such as formatted HTML or JSON, by using triple quotes to avoid concatenation and escape characters.
#3about 4 minutes
Simplifying logic with enhanced switch expressions
The enhanced switch expression uses arrow syntax to return values, supports multiple case labels, and eliminates the need for `break` statements, preventing fall-through errors.
#4about 3 minutes
Reducing boilerplate with pattern matching for `instanceof`
Pattern matching for the `instanceof` operator allows you to check an object's type and cast it to a new variable in a single line, simplifying type-checking logic.
#5about 4 minutes
Advanced case selection with pattern matching for switch
The preview feature of pattern matching for switch statements enables matching cases by type and adding conditional guards, making switch logic more powerful and expressive.
#6about 3 minutes
Creating immutable data classes easily with records
The `record` keyword provides a concise way to create immutable data carrier classes by automatically generating constructors, getters, `equals()`, `hashCode()`, and `toString()` methods.
#7about 4 minutes
Controlling class inheritance with sealed classes and interfaces
Sealed classes and interfaces restrict which other classes or interfaces may extend or implement them, providing finer-grained control over your class hierarchy.
#8about 2 minutes
A simpler way to collect streams into a list
The new `Stream.toList()` method offers a more concise alternative to `collect(Collectors.toList())` for gathering stream elements into an unmodifiable list.
#9about 2 minutes
Understanding the new random number generator API
Java 17 introduces a new, more extensible API for random number generation centered around the `RandomGenerator` interface, providing a unified way to access various algorithms.
#10about 1 minute
Debugging faster with helpful NullPointerExceptions
NullPointerExceptions now provide detailed messages that specify which variable was null, significantly speeding up the debugging process.
#11about 2 minutes
Summary of changes and considerations for upgrading
The updates from Java 11 to 17 are mostly handy, incremental improvements rather than groundbreaking changes, making the upgrade beneficial but dependent on project constraints.
#12about 14 minutes
Q&A on upgrading, records, and framework compatibility
The Q&A session addresses when to upgrade from non-LTS versions, potential blockers like framework compatibility, and specific questions about records versus Lombok.
Related jobs
Jobs that call for the skills explored in this talk.
tree-IT GmbH
Bad Neustadt an der Saale, Germany
€54-80K
Intermediate
Senior
Java
TypeScript
+1
MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
TypeScript
+1
Matching moments
04:57 MIN
Increasing the value of talk recordings post-event
Cat Herding with Lions and Tigers - Christian Heilmann
01:32 MIN
Organizing a developer conference for 15,000 attendees
Cat Herding with Lions and Tigers - Christian Heilmann
03:17 MIN
Selecting strategic partners and essential event tools
Cat Herding with Lions and Tigers - Christian Heilmann
02:44 MIN
Rapid-fire thoughts on the future of work
What 2025 Taught Us: A Year-End Special with Hung Lee
03:28 MIN
Shifting from talent acquisition to talent architecture
The Future of HR Lies in AND – Not in OR
09:16 MIN
Actionable tips for employers and employees
Sustainable High Performance: Build It or Pay the Price
05:26 MIN
Understanding Gen Z and modern employee motivators
Sustainable High Performance: Build It or Pay the Price
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
Featured Partners
Related Videos
The Cool Thing about Cool Things in Java 16 & 17 LTS
Mohamed Taman
Best of Java 15 and beyond—my favorite features
Michael Inden
Using Java 17 latest features in real world projects
Ron Veen
Beam Me Up, Java! Unraveling the Warp-Speed Evolution: A Journey through Java LTS Versions 11 to 21
Jonathan Vila
Modern Java: This is not your father's Java anymore
Ron Veen
Modern Java 25
Ron Veen
Java Sealed Classes vs. Kotlin Sealed Classes #Slideless
Lothar Schulz
Java 21: The Revolution of Virtual Threads - A Deep Dive
Christian Woerz
Related Articles
View all articles.gif?w=240&auto=compress,format)



From learning to earning
Jobs that call for the skills explored in this talk.


JetBrains GmbH
Berlin, Germany
API
GIT
Java
Gitlab
Kotlin
+2

JetBrains
Amsterdam, Netherlands
Java
JUnit
Maven
Gradle
Python
+4

WeMatch GmbH
€65-90K
Java
Vaadin
Kotlin
Microsoft SQL Server

JetBrains GmbH
Berlin, Germany
API
Java
Rust
Kotlin
IntelliJ


Profi-Workers
Zwolle, Netherlands
Remote
€5-7K
Senior
GIT
Java
REST
+10


JetBrains GmbH
Berlin, Germany
Senior
Java
Kotlin
Android
IntelliJ