The Art of Java Language Pattern Matching

Originally aired:

About the Session

Project Amber within OpenJDK focuses on introducing smaller, productivity-oriented Java language features. One key area of innovation from Project Amber is pattern matching, which is now a powerful tool in modern Java development. Pattern matching allows code logic to test whether an expression has a specific type or structure, while extracting components of its state for further processing.

In this session, we will explore the new pattern matching features introduced in recent Java versions, defined by the following JDK Enhancement Proposals (JEPs):

  • Pattern matching for instanceof (JEP 433)
  • Pattern matching for switch (JEP 441)
  • Record patterns (JEP 440)
  • Unnamed patterns and variables (JEP 456)
  • Primitive types in patterns, instanceof, and switch (JEP 455)

We’ll take a deep dive into how these features work, how they simplify Java code, and the flexibility they bring to pattern matching. Additionally, we’ll explore future features, such as array patterns, that may be included in upcoming Java releases.

By the end of the session, you’ll be fully equipped to apply these powerful new pattern matching features in your own Java projects.

Target Audience: This session is aimed at Java Developers who want to deepen their understanding of pattern matching and incorporate the latest language features into their coding practices. Software Architects may also benefit from learning how these features can simplify code design and improve maintainability. Back-end Engineers working with complex data structures and logic will find value in leveraging pattern matching for cleaner, more efficient code.

See Highlights

Hear What Attendees Say

PwC

“Once again Saltmarch has knocked it out of the park with interesting speakers, engaging content and challenging ideas. No jetlag fog at all, which counts for how interesting the whole thing was."

Cybersecurity Lead, PwC

Intuit

“Very much looking forward to next year. I will be keeping my eye out for the date so I can make sure I lock it in my calendar."

Software Engineering Specialist, Intuit

GroupOn

“Best conference I have ever been to with lots of insights and information on next generation technologies and those that are the need of the hour."

Software Architect, GroupOn

Hear What Speakers & Sponsors Say

Scott Davis

“Happy to meet everyone who came from near and far. Glad to know you've discovered some great lessons here, and glad you joined us for all the discoveries great and small."

Web Architect & Principal Engineer, Scott Davis

Dr. Venkat Subramaniam

“Wonderful set of conferences, well organized, fantastic speakers, and an amazingly interactive set of audience. Thanks for having me at the events!"

Founder of Agile Developer Inc., Dr. Venkat Subramaniam

Oracle Corp.

“What a buzz! The events have been instrumental in bringing the whole software community together. There has been something for everyone from developers to architects to business to vendors. Thanks everyone!"

Voltaire Yap, Global Events Manager, Oracle Corp.