~/talk

Better Tools for Immutable Data

Talkat JavaOne 2026 · 2026-03-17..03-19· [java]
links:none on file
slides:none on file

Survey of concrete Java features that make immutable data easier: records and record patterns supply final components, automatic equals/hashCode and deconstruction; JEP 468 (derived record creation) provides a with-block to produce modified copies; value classes/records remove identity enabling VM encodings that embed data and shrink heap indirections; early-field initialization, the lazy constants API, marshalling-based deserialization, initialization diagnostics, and final arrays reduce unsafe reflective mutation and enable JVM optimizations. Future items remain in flux.

AI-written summary · about

  1. 0:00Immutable data in Java
  2. 1:03Object-oriented programming and immutability
  3. 3:50Defining immutable data
  4. 7:19Challenges with immutability
  5. 10:06Best practices in classic Java
  6. 14:22Java 17/21 features
  7. 17:09Java 17/21/25 features
  8. 26:57Derived record creation
  9. 31:36Value records and classes
  10. 36:49Extending record benefits
  11. 38:32Deconstructors
  12. 40:38Serialization and immutable data
  13. 43:30Protecting final fields
  14. 45:35Lazy constants and arrays
  15. 48:25Modern Java best practices
  16. 49:06Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.