Maintained with ☕️ by
IcePanel logo

Amazon Corretto 21 is now generally available

Share

Services

Amazon Corretto 21 is now generally available. This Long Term Support (LTS) version supports the latest Java release, OpenJDK 21, and is available on Linux, Windows, and macOS. You can download Corretto 21 from our [downloads page](https://docs.aws.amazon.com/corretto/latest/corretto-21-ug/downloads-list.html). Some highlights of OpenJDK 21 include: * [Virtual Threads](https://openjdk.org/jeps/444). Lightweight threads not bounded by OS threads. * [DNS stale caching](https://bugs.openjdk.org/browse/JDK-8304885). Reuses stale data to improve DNS resolver resiliency. * [Generational ZGC](https://openjdk.org/jeps/439). Extension to Z Garbage Collector to maintain separate object generations. * [Record Patterns](https://openjdk.org/jeps/440) and [Pattern Matching for Switch](https://openjdk.org/jeps/441). New record-based objects and switch expressions. * [Sequenced Collections](https://openjdk.org/jeps/431). These new interfaces represent collections with a defined encounter order. * [Key Encapsulation Mechanism API](https://openjdk.org/jeps/452). An encryption technique for securing symmetric keys using public key cryptography. There are also several preview features in OpenJDK 21: * [Foreign Function & Memory (FFM)](https://openjdk.org/jeps/442). An easier, cleaner and safer way to interoperate with native code. * [Structured Concurrency](https://openjdk.org/jeps/453). Treats groups of related tasks running in different threads as a single unit of work. * [Vector API](https://openjdk.org/jeps/448). Provides performance improvements using optimal vector instructions on supported CPU architectures. * [Scoped Values](https://openjdk.org/jeps/446). Values may be safely and efficiently shared to methods without using method parameters. * [Unnamed Classes and Instance Main Methods](https://openjdk.org/jeps/445). Makes it easier to get started with Java. * [String Templates](https://openjdk.org/jeps/430). Couples literal text with embedded expressions and template processors to produce specialized results. A detailed description of these features can be found on the [OpenJDK 21 Project page](https://openjdk.org/projects/jdk/21/). [Amazon Corretto](https://aws.amazon.com/corretto/) is a no-cost, multi-platform, production-ready distribution of [OpenJDK](https://aws.amazon.com/blogs/opensource/amazon-corretto-no-cost-distribution-openjdk-long-term-support/). Corretto is distributed by Amazon under [an open source license](https://openjdk.java.net/legal/gplv2+ce.html).