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:
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.
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.
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 dev.java. 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.
Oxford Web Studio
"*" indicates required fields
Software Asset Management is a business practice that involves managing and optimising the life cycle of software within an organisation.
Software asset management is relevant to many facets of a business - take a look at some of the roles that it can form part of the focus of.
Software vendors come in all shape and sizes - all with their own set of licensing models and rules. We take a look at just a few of them.
As a constantly evolving subject, SAM is not without its challenges. We take a look at some of the most common ones.
Wondering what an investment in SAM could do for your business? Fill out a few details and find out what return you could get!
Answer a few questions about your SAM infrastructure & experience, and we'll put together a personalised recommendation for the future.
A simple health check of what's being used across your Office 365 estate in this FREE, Microsoft backed and easy to setup review.
Just like you would with your vehicle each year, get an annual check up of your software asset management programme.
Overwhelmed by the task of documenting the steps for a successful SAM programme? Get the experts in to help!
Concerned your SAM tools aren't covering your whole estate? Or on the look out for an entirely new tool? Get us in to assist.
Not content with covering all things SAM related, we've teamed up with Capital to provide a comprehensive hardware asset management review.
A simple, one-time reconciliation of the software you have deployed versus the licence entitlement you own.
A regularly scheduled analysis of your organisation's estate, specifically adapted to your needs and budget.
A full appraisal of your Microsoft 365 setup and how best to optimise it through automated recommendations.
An add-on to our SAMplicity One, MOT and Plus offerings, quickly diagnose your ability to migrate your resources to the cloud.
In collaboration with law firm Addleshaw Goddard, ensure the legality of your SAM programme and get assistance with any contract disputes.
Available as standard with SAMplicity Plus, ensure you're compliant if you're unexpectedly audited by a vendor.
We've teamed up with some of the forefront experts in licensing knowledge so you can teach yourself to be an expert too.
Stumped by the continually evolving complexities of SAM? Join us for one of our comprehensive courses, either in-person or online.
It’s chock full of useful advice, exclusive events and interesting articles. Don’t miss out!