List of new features introduced in Java 16
Java 16, also known as Java SE 16 or JDK 16, is a short-term release that was released on March 16, 2021. It includes a number of new features and enhancements, as well as bug fixes and security updates.
Here is a list of all the new features and enhancements introduced in Java 16:
- Pattern Matching for instanceof (JEP 395)
- Records (JEP 384)
- Raw String Literals (JEP 378)
- Enhanced Enums (JEP 361)
- Text Blocks (JEP 378)
- Garbage Collector Interface (JEP 377)
- Sealed Classes (JEP 360)
- Deprecation of the Solaris and SPARC Ports (JEP 372)
- Foreign-Memory Access API (Incubator, JEP 394)
- Vector API (Incubator, JEP 395)
- Packaging Tool (Incubator, JEP 391)
- Second Preview of Switch Expressions (JEP 361)
- Second Preview of Text Blocks (JEP 378)
These are all the new features and enhancements introduced in Java 16. For more information about these features, you can refer to the official Java SE 16 documentation.