Loading…
Loading…
After years of anticipation, Project Valhalla's Value Classes and Objects (JEP 401) are finally confirmed for JDK 28. This isn't just an update; it's a fundamental shift in how Java handles data, promising unparalleled performance gains.

On June 15, 2026, a collective gasp (and perhaps a few 'I told you so's) echoed through the Java community. Oracle engineer Lois Foltan confirmed what many had started to consider a myth: JEP 401: Value Classes and Objects is officially on its way, targeting JDK 28. It's like waiting for a band's legendary, never-released album to suddenly drop – the anticipation was real, and the implications, well, they're nuanced, to say the least.
For over a decade, Project Valhalla has been the JVM's whispered promise of a future where data isn't just objects with identities, but efficient, identity-less values. This isn't just a syntax sugar; it's a fundamental re-architecture of how the Java Virtual Machine handles data, aiming to close the infamous "primitive gap." Think of it as Java finally getting its data structures to behave less like a linked list of individual boxes and more like a tightly packed array.
"The change is so large, it feels like we're finally seeing Ragnarok arrive for the JVM. But in a good way, mostly."
This isn't about making Java more like C++; it's about making Java better at being Java, especially for modern, data-intensive workloads. The goal? Performance, pure and simple, achieved through memory layout optimizations that were once unthinkable in the object-centric JVM.
Here are the key concepts JEP 401 brings to the table, reshaping how we think about data in Java:
Point or Money.ComplexNumber or Money – that behave with the efficiency of int or long. It's about data density and flat layouts, ditching object headers and pointers.Point or Money. No more unnecessary wrapping.📌 Key Point: Valhalla is less about new features for everyday coding and more about a fundamental shift in how the JVM handles data, making Java incredibly efficient for modern compute patterns.
Valhalla isn't just a technical upgrade; it's a philosophical one. For decades, Java has ingrained the concept of object identity into every developer's mind. With value types, we're asked to embrace an alternative: data is its value. This shift encourages a more data-oriented design approach, where immutability isn't just a best practice, but an inherent characteristic.
It means new considerations when designing APIs and data models. Suddenly, copying a value type isn't a deep clone operation, but a simple bitwise copy – fast and efficient. This focus on data density and immutability will likely lead to less garbage collection pressure and more predictable performance, allowing developers to build systems that scale with greater ease. The days of chasing down mysterious NullPointerExceptions related to empty object references might even become slightly less frequent, as value types inherently encourage non-null data.
The arrival of Project Valhalla in JDK 28 marks a pivotal moment for Java. It's not just about a few new keywords; it's a deep-seated evolution of the platform's core memory model, promising a new era of performance and efficiency. As developers, we're not just getting faster code; we're being nudged towards a more data-conscious way of building applications. How will this decade-long journey reshape the next ten years of Java development? Only time, and a lot of compiled code, will tell.
Project Valhalla is a long-running OpenJDK initiative aimed at enhancing the Java language and JVM to support value types, which are identity-less, immutable data carriers that can be stored in flat memory layouts for improved performance.
Share this article
Found this useful? Share it with your friends and followers.
Rate this article
Leave a comment
Related topics
You might also like
Handpicked stories for you

HackEurope 2026 was a complete disaster of vibe-coded UI and delays, proving that AI lets developers fake functionality while investors chase pretty interfaces over real code.





Enjoy this article?
Get fresh stories delivered to your inbox every morning.