Java 2024 Conference: Key Announcements That Will Change the Ecosystem
At the end of October 2024, the annual JavaOne conference concluded in San Francisco — one of the key events for all Java developers. Organizers and community leaders presented a number of long-awaited announcements that will determine the platform's development vector for the coming years. We have gathered the most important information for you.
Project Valhalla: Value Types Become a Reality
One of the main events was the announcement of the imminent completion of Project Valhalla. This initiative aims to introduce value types and primitive classes. The innovation will allow developers to create more performant and compact data structures, avoiding the overhead associated with heap objects.
- Value classes — a new way to declare types that behave like primitives but also have methods.
- Flat memory layout — data will be stored on the stack or linearly in the heap, speeding up access and reducing garbage collector load.
- Compatibility — value types will be fully backward compatible with existing code.
The first preview versions are expected to appear in Java 24, with full implementation in one of the following versions.
Project Loom: Virtual Threads Reach a New Level
After the successful debut of Virtual Threads in Java 21, the development team announced the expansion of Project Loom. New tools for working with multithreading were presented at the conference:
- Scoped values — an alternative to ThreadLocal for passing context in virtual threads with lower overhead.
- Structured Concurrency — a new API for managing groups of threads, simplifying error handling and task cancellation.
- Improved debugging — future JDK versions will include the ability to profile virtual threads in detail without performance loss.
Thanks to these changes, Java is becoming even more attractive for building high-load asynchronous services.
Project Amber: Syntax Simplification
There were also language improvements. As part of Project Amber, new syntactic features were announced that will make code cleaner and more concise:
- Pattern Matching for switch — the final version, including support for primitives and more flexible conditions.
- Record Patterns — records can now be decomposed directly in conditions, which is especially useful when working with nested structures.
- String Templates — simplifying string interpolation without the need to include external libraries.
Ecosystem: GraalVM and Spring Boot
Announcements from Oracle and the community are also worth noting:
- GraalVM 24.1 — improved native image support for microservices, reducing startup time to tens of milliseconds.
- Spring Boot 4.0 — first details: the framework moves to Java 21+ as the minimum version and integrates more deeply with virtual threads.
- OpenJDK — accelerated release cycle: Java 24 is expected in March 2025, and