The release of JDK 14 resumes the six-month release cadence of OpenJDK and signifies that this is working very well. Although some releases have been a little light on new features (JDK 13, for example), JDK 14 includes multiple exciting new features for developers.
In addition to the usual API changes and low-level JVM enhancements, JDK 14 also includes two language preview features in the form of records and pattern matching for
instanceof. All Java developers are familiar with
NullPointerExceptions, and now, thankfully, they have been improved to simplify debugging.
Java has always protected developers from the kind of common errors that occur in languages like C and C++ through the use of explicit pointers that can be manipulated and point to the wrong place. Sometimes, this can be useful, and developers have resorted to using undocumented and unsupported APIs like
sun.misc.Unsafe. In JDK 14, there is a new incubator module providing a foreign-memory access API.
This is a preview of the Java 14 Refcard. To read the entire Refcard, please download the PDF from the link above.