JDK Version | Release Date | Key Features and Notes |
---|---|---|
JDK 8 | March 2014 | Introduced lambda expressions, the Stream API, and the java.time package for date and time manipulation. Marked a major milestone, enabling more concise and expressive code. |
JDK 9 | September 2017 | Introduced the module system (Project Jigsaw) for modularization, improving maintainability and performance. Added JShell for interactive programming and enhanced Garbage Collector. |
JDK 10 | March 2018 | Introduced local variable type inference (var keyword), improving readability by allowing implicit variable types. Enhanced Java Platform Module System (JPMS) and included experimental Application Class-Data Sharing (CDS). |
JDK 11 | September 2018 | A Long-Term Support (LTS) release, offering stability and extended support. Introduced HTTP Client API, improved garbage collection, and removed deprecated features. Marked the start of a six-month release cadence for Java. |
JDK 12 - JDK 17 | March 2019 - September 2021 | Continued rapid release cycle with each version adding new features, performance improvements, and bug fixes, adapting to the evolving needs of Java developers. JDK 17, an LTS release, brought stability and continued support. |
JDK 18 | March 2022 | Introduced new capabilities like simple web server APIs and code snippets in Java documentation. Focused on language enhancements and platform performance. |
JDK 19 | September 2022 | Brought features like virtual threads, structured concurrency, and improved foreign function and memory API, enhancing concurrent programming and cross-language interoperability. |
JDK 20 | March 2023 | Added further improvements to virtual threads, the foreign function and memory API, and the pattern matching enhancements. Continued with preview features for structured concurrency to simplify handling of multiple tasks. |
JDK 21 | September 2023 | An LTS release with new features like sequenced collections, full support for virtual threads, record patterns, and pattern matching for switch expressions. Included additional API improvements, enhancing Java’s concurrency and memory management. |
JDK 22 | Planned March 2024 | Expected to focus on enhancing performance, language features, and developer productivity. Further details are anticipated closer to release. |
Which Should I Choose? JDK Or JRE?
Comments
Add comment