Oracle Focuses on AI and Productivity with Introduction of Java 25

java

Oracle introduces Java 25. The latest release is equipped with new language and library features that make the programming language better suited for AI integration. Oracle also points to improved performance and increased ease of use for new developers.

Oracle has officially launched Java 25. The update includes 18 JDK Enhancement Proposals (JEPs) that expand the programming language with new features. These are primarily aimed at AI applications, simplification of programming tasks, and improved performance. The update will receive long-term support until at least 2033.

One of the most notable new features is JDK Enhancement Proposal JEP 507, which now fully supports primitive types in pattern matching, instanceof, and switch constructs. This makes the language more consistent and simplifies AI inference in Java applications. JEP 511, on the other hand, makes it more convenient to use modules without complex import structures. This is particularly intended to help beginner developers and streamline small AI projects.

New Libraries and Performance Improvements

Java 25 also receives updates to its standard libraries. JEP 505 introduces structured concurrency to improve the reliability of multithreaded applications. Other proposals, such as JEP 506 (Scoped Values) and JEP 502 (Stable Values), support better data isolation and memory management in parallel applications.

In terms of performance, JEP 519 reduces memory pressure through more compact object headers, while JEP 515 improves application startup behavior by using pre-collected execution profiles. The Vector API (JEP 508), now in its tenth iteration, enables more efficient vector calculations on supported hardware. This is again particularly relevant for AI computations.

Finally, monitoring also receives extra attention with three new JEPs (509, 518, and 520) for better profiling and error detection via JDK Flight Recorder.

Java 25 will remain available under the Oracle No-Fee Terms and Conditions until September 2028. After that, further support will be provided via the Java SE OTN license. Oracle anticipates supporting this version until at least 2033.