Oracle Announces New Features and Performance Improvements for Java 24

Oracle has just announced the long-awaited roadmap for Java 24 for developers. Notable additions in this update include new capabilities for artificial intelligence (AI) and post-quantum cryptography. Java 24 is the first release in 2025; we can expect Java 25 to arrive in 6 months.

Speaking about Java 24, Oracle Java Platform Senior Vice President and OpenJDK Board Chairman Georges Saab said:

For 30 years, Java has provided developers with a comprehensive platform for building and deploying applications that address a wide range of use cases. With over 20 new features spanning every aspect of Java, including AI capabilities and post-quantum cryptography, Java 24 gives developers the tools they need to build innovative, AI-enabled applications. As stewards of Java, we are excited to work with the global Java community to continue delivering a steady stream of new features through a consistent six-month release cycle.

Here's an overview of some of the important new features in Java 24:

Language improvements:

  • Primitive Types in Patterns : Extend pattern matching capabilities to include primitive data types in instanceof and switch.
  • Flexible Constructor Bodies : Improve constructor reliability with separate prologue and epilogue phases.
  • Module Import Declarations : Simplify importing module packages.
  • Simple Source Files & Instance Main Methods : Create simpler entry points for beginners and compact programs.

Library improvements:

  • Stream Gatherers : Enhance the Stream API with custom middleware operations.
  • Class-File API : Standardized API for working with class files.
  • Scoped Values ​​: Improves safe data sharing between threads.
  • Vector API : Accelerates vector computation on supported CPUs.
  • Structured Concurrency : Simplifies multithreaded programming.

Security Advancements:

  • Key Derivation Function API : Enhanced cryptographic security.
  • Quantum-Resistant Key Encapsulation (ML-KEM) : Ready for post-quantum cryptography.
  • Quantum-Resistant Digital Signatures (ML-DSA) : Ready for post-quantum cryptography.

Performance and runtime:

  • Compact Object Headers : Reduces the size of object headers for more efficient memory usage.
  • Late Barrier Extension for G1 : Optimizes the G1 garbage collector.
  • Ahead-of-Time Class Loading & Linking : Faster application launch.
  • ZGC: Remove Non-Generational Mod e: Simplify ZGC maintenance.
  • Synchronize Virtual Threads without Pinning : Improves virtual thread scalability.

Tools:

  • Linking Run-Time Images without JMODs : Reduce JDK size and increase linking flexibility.

If you want to learn more about Java 24, Oracle has prepared an in-depth technical article . If you want to start using Java 24 right away, you can download JDK 24 from Oracle's download page.

Sign up and earn $1000 a day ⋙

Leave a Comment

The most unique and beautiful egg nests in the insect world

The most unique and beautiful egg nests in the insect world

Insect eggs come in different shapes and colors. You can find brown insect eggs and more.

Interesting facts about Winter Solstice

Interesting facts about Winter Solstice

The winter solstice — the day marking the beginning of winter — occurs on the shortest day and longest night of the year. Here are some interesting facts about the winter solstice that you may not know.

The Hidden Message Behind Coca-Cola Bottles That Few People Know

The Hidden Message Behind Coca-Cola Bottles That Few People Know

The Coca-Cola logo is iconic on its own. But if you look a little closer, it contains something dear to the heart of the company—a nod to joy.

Latest Wordle Answers Today 04/25/2025

Latest Wordle Answers Today 04/25/2025

Wordle was created by Josh Wardle, it originally started as a project for his partner, as they enjoyed playing word guessing games together.

ChatGPT Search or Google is better?

ChatGPT Search or Google is better?

Many people have been trying for a long time to see if they can actually replace Google with the ChatGPT Search Chrome extension.

Guide to build Void Walker DTCL season 8.5

Guide to build Void Walker DTCL season 8.5

This DTCL season 8.5 Void Traveler is a sub-race and of course, with only 3 generals, these generals must really stand out to have a place in other formations.

How to fix sound problems on Xbox

How to fix sound problems on Xbox

It can be difficult to troubleshoot sound issues on Xbox when the problem can occur anywhere between your TV setup and your Xbox system settings.

Answer to the question: Being a professional soccer player in Lien Quan

Answer to the question: Being a professional soccer player in Lien Quan

Being a professional soccer player is one of the suggestions in the Grass Professor event of Lien Quan Mobile. Let's explore with Quantrimang to see who the character this event wants to mention is.

18 mysterious and strange places appearing on Google Earth that make people surprised

18 mysterious and strange places appearing on Google Earth that make people surprised

The vast Earth has many mysterious lands that humans have not known and have not set foot on. Nowadays, thanks to the Google Earth tool, anyone can search and explore strange and mysterious places on this planet.

14 Best New AI Features Adobe Revealed at Adobe Max 2024

14 Best New AI Features Adobe Revealed at Adobe Max 2024

Adobe Max 2024 has launched a series of exciting updates, introducing powerful new AI tools to Adobe's toolset.

Why do cats cover their faces when they sleep?

Why do cats cover their faces when they sleep?

There are many different explanations for why cats cover their faces while sleeping, from trying to keep warm to protecting their whiskers. Here's the answer to the question of why cats cover their faces while sleeping.

Quiz: How many meters is 1 foot?

Quiz: How many meters is 1 foot?

How many meters is 1 foot? If you don't know, let's find the answer together!

How many kilometers is a light year, how many earth years?

How many kilometers is a light year, how many earth years?

How many kilometers are 120 light years? How many kilometers are 40 light years? Let's find out together about a light year to find the answer!

Best time to post Instagram Reels

Best time to post Instagram Reels

The timing of your Instagram Reels can make the difference between massive engagement and dead silence. Let’s find out the best times to post on Instagram Reels.

Status about dogs, funny and humorous captions about pets

Status about dogs, funny and humorous captions about pets

There are many funny captions about dogs on the Internet. This article will gather for you the funniest, most humorous, and most interesting poems about dogs.