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

Google uses AI to detect scams right on Chrome

Google uses AI to detect scams right on Chrome

The fact that top browsers are starting to use AI to prevent scams is good news for users.

Gemini can now recognize PDF files appearing on smartphone screens

Gemini can now recognize PDF files appearing on smartphone screens

Files by Google will now automatically enable Gemini analysis when you open a PDF document.

Learn About Windhawk: Free Windows Mod Tool Unlocks Tons of New Features

Learn About Windhawk: Free Windows Mod Tool Unlocks Tons of New Features

Windows 11 has a lot of features, but it also has some quirks. You can easily fix some of those issues—and take advantage of new features and mods—with third-party tools like Windhawk.

Nunu DTCL season 8 build, Nunu TFT season 8 build

Nunu DTCL season 8 build, Nunu TFT season 8 build

Nunu of the new season of Truth Arena has a skill similar to Singed DTCL season 2 and Aurelion Sol of season 3 but the movement range will be wider and the speed will also be faster.

How to Add ChatGPT to Microsoft Edge Sidebar

How to Add ChatGPT to Microsoft Edge Sidebar

To quickly use ChatGPT on Edge browser, you can add it to the right Sidebar of the browser for immediate use when needed.

AI-generated photos created in 2023 are causing a stir

AI-generated photos created in 2023 are causing a stir

In 2023, a series of AIs that create images with just a short description were released, including OpenAI's Dall-E, Stability.AI's Stable Diffusion, and Meta's Midjourney, Imagine with Meta AI.

How to access your Chromebooks clipboard manager

How to access your Chromebooks clipboard manager

The ability to copy and paste is a basic, simple function that any operating system has and must have.

How to take a screenshot on OnePlus phones

How to take a screenshot on OnePlus phones

OnePlus phones have three ways to take screenshots, including taking scrolling screenshots without additional software.

How to Use Start11 to Completely Overhaul Windows 11

How to Use Start11 to Completely Overhaul Windows 11

The tool used to customize Windows 11, Start11, offers a free trial and then charges a one-time fee of $9.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

Top smartphones that emit the most dangerous radiation today

Top smartphones that emit the most dangerous radiation today

Stocklytics has released a list of the top smartphones with the highest radiation levels. Accordingly, Xiaomi and Samsung are the companies with the most smartphones with the highest radiation levels.

5 Best Google Sheets Add-ons to Make Data Analysis Easier

5 Best Google Sheets Add-ons to Make Data Analysis Easier

Google Sheets is a powerful tool for data analysis, but sometimes you need more power. There are plenty of add-ons that can speed up your spreadsheets and take your data processing to the next level.

The best way to scan and digitize old photos

The best way to scan and digitize old photos

Your precious old photos won't last forever. If you want to preserve your memories from time, damage, and dust, you need to bring them into the digital age.

Instructions to change Messenger color on phone, computer

Instructions to change Messenger color on phone, computer

Messenger has different chat themes for you to set for your chat. In addition to artistic chat themes or specific topics, you can also choose a color theme for Messenger.

How to play the Executioner lineup DTCL season 14

How to play the Executioner lineup DTCL season 14

The Executioner in season 14 stands out with his ability to deal powerful critical damage.