Oracle Releases Java 20
Oracle has launched Java 20, the latest version of its leading programming language, featuring seven JDK Enhancement Proposals to enhance developer productivity and improve platform performance, stability, and security. Key updates include language improvements from OpenJDK projects such as Amber, Panama, and Loom. These enhancements aim to streamline application development, allowing organizations to use resources more efficiently. This release is part of Oracle's predictable six-month update schedule, ensuring continuous improvements and relevance in today’s evolving tech landscape.
- Java 20 includes seven JDK Enhancement Proposals to improve functionality and performance.
- Enhancements focus on productivity, performance, and security, aiding organizations in their digital transformation efforts.
- Oracle's predictable release schedule ensures regular updates, keeping Java competitive and relevant.
- None.
Insights
Analyzing...
New release delivers seven JDK Enhancement Proposals to increase developer productivity, improve the Java language, and enhance the platform's performance, stability, and security
"For more than 25 years, Java has empowered developers to design and build the next generation of robust, scalable, and secure applications," said
The latest Java Development Kit (JDK) provides updates and improvements with seven JDK Enhancement Proposals (JEPs). The majority of the updates are follow-up features improving on functionality introduced in earlier releases.
JDK 20 delivers language improvements from OpenJDK project Amber (Record Patterns and Pattern Matching for Switch); enhancements from OpenJDK Project Panama to interconnect Java Virtual Machine (JVM) and native code (Foreign Function & Memory API and Vector API); and features related to Project Loom (Scoped Values, Virtual Threads, and Structured Concurrency), which will dramatically streamline the process of writing, maintaining, and observing high-throughput, concurrent applications.
"Organizations today face increasing pressure to use their resources as wisely and efficiently as possible, which requires developers to seek tools that streamline application development while helping ensure their organizations achieve their IT security and compliance goals," said
Oracle delivers new Java feature releases every six months via a predictable release schedule. This cadence provides a steady stream of innovations, while delivering continuous improvements to the platform's performance, stability, and security that help increase Java's pervasiveness across organizations and industries of all sizes.
The most significant updates delivered in Java 20 are:
Language Updates and Improvements
- JEP 432: Record Patterns (Second Preview): Enhances the Java language by allowing users to nest record patterns and type patterns to create a powerful, declarative, and composable form of data navigation and processing. This helps increase developer productivity by enabling them to extend pattern matching to allow for more sophisticated and composable data queries.
- JEP 433: Pattern Matching for Switch (Fourth Preview): By extending pattern matching to switch, an expression can be tested against a number of patterns – each with a specific action – so that complex data-oriented queries can be expressed concisely and safely. Expanding the expressiveness and applicability of switch expressions and statements helps increase developer productivity.
Project Loom Preview/Incubator Features
- JEP 429: Scoped Values (Incubator): Enables the sharing of immutable data within and across threads, which are preferred to thread-local variables – especially when using large numbers of virtual threads. This increases ease-of-use, comprehensibility, robustness, and performance.
- JEP 436: Virtual Threads (Second Preview): Significantly streamline the process of writing, maintaining, and observing high-throughput, concurrent applications by introducing lightweight virtual threads to the Java Platform. By enabling developers to easily troubleshoot, debug, and profile concurrent applications with existing JDK tools and techniques, virtual threads helps accelerate application development.
- JEP 437: Structured Concurrency (Second Incubator): Simplifies multithreaded programming by treating multiple tasks running in different threads as a single unit of work. This helps development teams streamline error handling and cancellation, improve reliability, and enhance observability.
Project Panama Preview Features
- JEP 434: Foreign Function & Memory API (Second Preview): Enables Java programs to interoperate with code and data outside of the Java runtime. By efficiently invoking foreign functions (i.e., code outside the Java Virtual Machine [JVM]), and by safely accessing foreign memory (i.e., memory not managed by the JVM), this feature enables Java programs to call native libraries and process native data without requiring the Java Native Interface. This increases ease-of-use, performance, and safety.
- JEP 438: Vector API (Fifth Incubator): Expresses vector computations that reliably compile at runtime to vector instructions on supported CPU architectures. This increases performance compared to equivalent scalar computations.
The Java 20 release is the result of extensive collaboration between Oracle engineers and other members of the worldwide Java developer community via OpenJDK and the Java Community Process (JCP). In addition to the new enhancements, Java 20 is supported by Java Management Service – an Oracle Cloud Infrastructure (OCI) native service – which provides a single pane of glass to help organizations manage Java runtimes and applications on-premises or on any cloud.
Supporting Java Customers and the Global Ecosystem
The Oracle Java Universal SE Subscription is a pay-as-you-go offering that provides customers with best-in-class support, including triage support for your entire Java portfolio, entitlement to GraalVM Enterprise, the Java SE Subscription Enterprise Performance Pack, access to the advanced features of the Java Management Service, and the flexibility to upgrade at the pace of their businesses. This helps IT organizations manage complexity, contain costs, and mitigate security risks. In addition, Oracle Java SE, GraalVM Enterprise, and the Java SE Subscription Enterprise Performance Pack are available free of charge on OCI, enabling developers to build and deploy applications that run faster, better, and with unbeatable cost-performance on Oracle Cloud.
To learn more about Java and its global ecosystem, please visit:
- Dev.java: The official portal for learning Java
- Inside.java: News and views from the members of the Java Team at Oracle
- Java YouTube: The official Java YouTube portal for Java learning videos
Additional Resources
- Download Oracle JDK 20
- Read the Java 20 technical blog
- Learn more about Java Management Service
- Learn more about the Oracle Java SE Universal Subscription
- Register for Oracle DevLive Level Up
About Oracle
Oracle offers integrated suites of applications plus secure, autonomous infrastructure in the Oracle Cloud. For more information about Oracle (NYSE: ORCL), please visit us at www.oracle.com.
Trademarks
Oracle, Java, MySQL and
1 Source:
View original content to download multimedia:https://www.prnewswire.com/news-releases/oracle-releases-java-20-301777017.html
SOURCE Oracle