This project is WIP ! Stay tuned.
This project aggregates examples of new Java and JVM features between versions 12 and 17 as well as practical java examples tailored for Java 17.
Make sure following software is installed on your PC.
- OpenJDK 17 or later.
- Gradle 7.3 or later
- docker.io 20.x or later
Please check system requirements before.
Most examples are build by top-level gradle project.
gradle clean build test installDist distZip
- Most interesting JEPs implemented in JDK12 - JDK17
- JEP 359, 384: Records
- JEP 325, 354, 361: Switch Expressions
- JEP 353: Reimplement the Legacy Socket API
- JEP 355, 368, 378: Text Blocks
- JEP 305: Pattern Matching for instanceof
- JEP 358: Helpful NullPointerExceptions
- JEP 373: Reimplement the Legacy DatagramSocket API
- JEP 370, 383: Foreign-Memory Access API
- JEP 339: Edwards-Curve Digital Signature Algorithm (EdDSA)
- JEP 360: Sealed Classes (Preview)
- JEP 371: Hidden Classes
- JDK12 [2019-03-19] Feature list
- JDK13 [2019-09-17] Feature list
- JDK14 [2020-03-17] Feature list
- JDK15 [2020-09-15] Feature list
- JDK16 [2021-03-16] Feature list
- JDK17 [2021-09-14] Feature list
Java 11 examples A peek into Java 17
Enjoy !