<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-s-new-with-java-22-qyiwpi5ko" -->

---
title: What&#x27;s New With Java 22 | daily.dev
description: Oracle released Java 22 with 12 JEPs including permanent and preview features. It introduces Region Pinning for G1, Foreign Function &amp; Memory API, Unnamed...
canonical: https://daily.dev/posts/what-s-new-with-java-22-qyiwpi5ko
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What&#x27;s New With Java 22 | daily.dev
og:description: Oracle released Java 22 with 12 JEPs including permanent and preview features. It introduces Region Pinning for G1, Foreign Function &amp; Memory API, Unnamed...
og:url: https://daily.dev/posts/what-s-new-with-java-22-qyiwpi5ko
og:image: https://api.daily.dev/og/posts/qYIWpI5Ko.png
og:image:alt: What&#x27;s New With Java 22
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.

# What's New With Java 22

**[JRebel](https://daily.dev/sources/jrebel)** · 3 min read · 12 upvotes · 0 comments

## Summary

Oracle released Java 22 with 12 JEPs including permanent and preview features. It introduces Region Pinning for G1, Foreign Function & Memory API, Unnamed Variables & Patterns, and Launch Multi-File Source-Code Programs as permanent features. The preview features include Statements before super(...), Class-File API, String Templates, Stream Gatherers, Structured Concurrency, Implicitly Declared Classes and Instance Main Methods, and Scoped Values. JRebel 2024.2.0 adds support for Java 22.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.jrebel.com/blog/whats-new-java-22>

---

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

[View this post on daily.dev](https://daily.dev/posts/what-s-new-with-java-22-qyiwpi5ko)

```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":"What's New With Java 22","url":"https://daily.dev/posts/what-s-new-with-java-22-qyiwpi5ko","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-s-new-with-java-22-qyiwpi5ko"},"datePublished":"2024-04-02T20:03:10.483Z","dateModified":"2024-05-09T08:43:33.910Z","description":"Oracle released Java 22 with 12 JEPs including permanent and preview features. It introduces Region Pinning for G1, Foreign Function & Memory API, Unnamed...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c72e314c0169ad55d03a2aff43d76457?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c72e314c0169ad55d03a2aff43d76457?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"JRebel","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":"JRebel","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/f9cdf4443dc44df590dd451ca31ff56e","url":"https://daily.dev/sources/jrebel"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/what-s-new-with-java-22-qyiwpi5ko","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":12},{"@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":"JRebel","item":"https://daily.dev/sources/jrebel"},{"@type":"ListItem","position":3,"name":"What's New With Java 22"}]}
```

