Java 22 released with the promise of bringing developers simplification and better usability

Java 22 released with the promise of bringing developers simplification and better usability

The new Java release introduces incremental technology improvements designed to make the programming language easier to use.

Published on 21st March 2024

The first major release of Java in 2024 is now available with the launch of Java 22.

Java 22 arrives six months after Java 21 and is an incremental feature update, not a Long-Term Support (LTS) release. With each new Java update, the community of developers led by Oracle works on a series of Java Enhancement Proposals (JEPs) that are typically clustered under larger projects. The major Java projects include Loom, Panama, and Amber, each having specific long-term goals for improving Java, with incremental capabilities landing in each new Java update.

A major focus for Java 22 is reducing complexity for developers.

Among the key updates to Java 22 are:

“I’ve been working on Java for the past 25 years, and we now have the most interesting and innovative pipelines of innovation in the platform that we have had in a long time,” said Bernard Traversat, vice president of software development in the Java Platform Group at Oracle.

How Java 22 Is Aiming to Simplify Development

One of the major focuses of Java 22 is reducing complexity for developers.

New features in Java 22 that Traversat highlighted include standardizing API interfaces and improving concurrency management to make the language more expressive.

One key set of enhancements comes from Project Amber — the changes are designed to make writing Java code less tedious. Constructors can now include statements before explicit superclass constructor invocations, removing the need to factor out logic into separate methods. Developers can also use unnamed variables and patterns where declarations are required but names are irrelevant. These improvements promise to eliminate boilerplate code and reduce errors.

For structured concurrency, Java 22 previews new APIs from Project Loom to handle errors and cancellation more elegantly. Immutable data sharing between threads also becomes easier. Both features aim to improve the robustness and comprehension of multi-threaded code.

“It’s all around this area of, How do we make sure that Java is attractive to developers?” Traversat said.

Project Babylon Is Coming

One of the newest initiatives to improve Java is Project Babylon.

Project Babylon’s goal is to unify CPU and GPU execution models for more efficient code processing, according to Traversat. He explained that Project Babylon aims to expand the CPU/GPU model by collecting information to help with code transformation and targeting efficient execution to GPUs.

Project Babylon has the potential to automate optimizations so code can seamlessly take advantage of GPUs without needing low-level programming. It represents an effort to bring GPU computing capabilities directly to the Java language.

Focus on Developer Experience

Beyond the specific features, Oracle is trying to improve the overall developer experience.

One way it is doing that is with an updated Java Playground on Here developers can try out Java features with sample code.

“This is our mechanism to offer a browser-based method for seasoned developers to see how specific net new features in Java actually look like before they use them in production,” said Sharat Chander, director, Java SE Product Management, at Oracle.


The latest updates straight to your inbox

We just need a few details to get you subscribed

Health Checks

Inventory & Compliance

Cloud Readiness & Optimisation

Agreement & Audit Support


Looking for something specific?

Let's see what we can find - just type in what you're after

Wait! Before you go

Have you signed up to our newsletter yet?

It’s chock full of useful advice, exclusive events and interesting articles. Don’t miss out!

Cookie Notice

Our website uses cookies to ensure you have the best experience while you're here.