<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/inside-java-javaone-2027-java-28-value-objects-z2bidiz8y" -->

---
title: Inside Java: JavaOne 2027 & Java 28 Value Objects
description: Java 28 will preview the first feature from Project Valhalla: value classes. These are reference types that behave like regular classes but lack identity,...
canonical: https://daily.dev/posts/inside-java-javaone-2027-java-28-value-objects-z2bidiz8y
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Inside Java: JavaOne 2027 & Java 28 Value Objects | daily.dev
og:description: Java 28 will preview the first feature from Project Valhalla: value classes. These are reference types that behave like regular classes but lack identity,...
og:url: https://daily.dev/posts/inside-java-javaone-2027-java-28-value-objects-z2bidiz8y
og:image: https://api.daily.dev/og/posts/z2bIdIZ8Y.png
og:image:alt: Inside Java: JavaOne 2027 & Java 28 Value Objects
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Inside Java: JavaOne 2027 & Java 28 Value Objects

**[Inside Java](https://daily.dev/sources/inside_java)** · 3 min read · 1 upvotes · 0 comments

## Summary

Java 28 will preview the first feature from Project Valhalla: value classes. These are reference types that behave like regular classes but lack identity, similar to primitives, guaranteeing true immutability and no identity-sensitive operations like synchronization. The JVM can flatten references to value types, for example packing a LocalDate array tightly, and scalarize instances for method calls to avoid heap allocations. With previews enabled in JDK 28, 30 JDK classes become values, including primitive wrappers, Optional, and many java.time classes; developers can add the 'value' keyword to classes and records. Details are in JEP 401, and early-access builds are available to test.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://inside.java/2026/11/21/inside-java-newsletter>

## Questions this post answers

### What are value classes in Java 28 and how are they different from regular classes?

Value classes, previewed in Java 28 as part of Project Valhalla, are reference types that behave like regular classes but lack identity, similar to primitives. They guarantee true immutability and prohibit identity-sensitive operations like synchronization. This lets the JVM optimize more aggressively, flattening references (for example packing a LocalDate array tightly) and scalarizing instances in method calls to avoid heap allocations.

_Developers evaluating Valhalla's impact on performance can track JEP progress and early-access builds through daily.dev._

### Which JDK classes become value classes when previews are enabled in Java 28?

When preview features are enabled in JDK 28, 30 JDK classes become values, most notably the primitive wrappers, Optional, and many classes in java.time. Developers can also add the 'value' keyword to their own class and record definitions to create new value classes, as detailed in JEP 401.

_Teams planning a JDK 28 upgrade can follow Java platform changes like this on daily.dev._

## Similar posts on daily.dev

- [JEP 401: Value Objects \(Preview\)](https://daily.dev/posts/jep-401-value-objects-preview--1rxfjujqr) · Inside Java · 2 upvotes · 0 comments
- [Java’s biggest language change in a decade is finally landing. It took 197,000 lines of code.](https://daily.dev/posts/java-s-biggest-language-change-in-a-decade-is-finally-landing-it-took-197-000-lines-of-code--8eeespmnb) · The Next Web · 39 upvotes · 1 comments
- [Valhalla, Now\!](https://daily.dev/posts/valhalla-now--aua4ibtem) · nipafx \(Nicolai Parlog\) · 0 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#jdk](https://daily.dev/tags/jdk)

[View this post on daily.dev](https://daily.dev/posts/inside-java-javaone-2027-java-28-value-objects-z2bidiz8y)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Inside Java: JavaOne 2027 \u0026 Java 28 Value Objects","url":"https://daily.dev/posts/inside-java-javaone-2027-java-28-value-objects-z2bidiz8y","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/inside-java-javaone-2027-java-28-value-objects-z2bidiz8y"},"datePublished":"2026-11-21T07:14:11.255Z","dateModified":"2026-11-21T07:14:39.241Z","description":"Java 28 will preview the first feature from Project Valhalla: value classes. These are reference types that behave like regular classes but lack identity,...","image":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","thumbnailUrl":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","isAccessibleForFree":true,"articleSection":"Inside Java","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inside Java","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/de5992d95f374790bdfd2ae03a16f6e3","url":"https://daily.dev/sources/inside_java"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/inside-java-javaone-2027-java-28-value-objects-z2bidiz8y","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,jdk","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inside Java","item":"https://daily.dev/sources/inside_java"},{"@type":"ListItem","position":3,"name":"Inside Java: JavaOne 2027 \u0026 Java 28 Value Objects"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/inside-java-javaone-2027-java-28-value-objects-z2bidiz8y#faq","mainEntity":[{"@type":"Question","name":"What are value classes in Java 28 and how are they different from regular classes?","acceptedAnswer":{"@type":"Answer","text":"Value classes, previewed in Java 28 as part of Project Valhalla, are reference types that behave like regular classes but lack identity, similar to primitives. They guarantee true immutability and prohibit identity-sensitive operations like synchronization. This lets the JVM optimize more aggressively, flattening references (for example packing a LocalDate array tightly) and scalarizing instances in method calls to avoid heap allocations. Developers evaluating Valhalla's impact on performance can track JEP progress and early-access builds through daily.dev."}},{"@type":"Question","name":"Which JDK classes become value classes when previews are enabled in Java 28?","acceptedAnswer":{"@type":"Answer","text":"When preview features are enabled in JDK 28, 30 JDK classes become values, most notably the primitive wrappers, Optional, and many classes in java.time. Developers can also add the 'value' keyword to their own class and record definitions to create new value classes, as detailed in JEP 401. Teams planning a JDK 28 upgrade can follow Java platform changes like this on daily.dev."}}]}
```

