JavaOne 2026

JavaOne 2026 Session

Duke in front of a whiteboard

Better Tools for Immutable Data

Summary

We'll review new and upcoming Java features that improve the convenience, reliability, and performance of immutable data, including:

  • Records, record patterns, and derived record creation
  • Value classes and objects
  • Early field initialization with flexible constructor bodies
  • The lazy constants API
  • Initialization diagnostics for static final fields
  • Unsafe reflective mutation or deserialization and the marshalling API as an alternative
  • In the future: immutable arrays?

We'll discuss how these features complement each other, what sorts of JVM optimizations they enable, and how to decide when they're a good fit for an application.

Profile

Type: Learning Session (50 min)

Track: Core Java Platform

Audience Level: Intermediate

Speaker: Daniel Smith

Session: Wednesday, March 18th at 10:30 AM in Room 203