Return to site

JDK 15: The new features in Java 15

=>The next version of standard Java will feature text blocks, garbage collectors, hidden classes, and previews of pattern matching and records

· java
  • A second incubator of a foreign-memory access API for accessing foreign memory in a satisfactory manner
  • A preview of sealed class which restricts which other classes or interfaces may extend it.
  • Removal of code for Solaris/SPARC, Solaris/x64, and Linux/SPARC ports
  • A second preview version of Records which is a restricted form of class
  • Add of Edwards-Curve Digital Signature Algorithm (EdDSA) signatures
  • Reimplementing the legacy DatagramSocket API
  • Disabling biased locking, used in the HotSpot Virtual Machine to reduce the overhead of uncontended locking
  • A second preview of pattern matching for instanceof
  • Add of Hidden classes which are classes that cannot be used directly by the bytecode of other classes
  • Z Garbage Collector & Shenandoah low-pause-time garbage collector as feature proposals
  • Text blocks which consists of zero or more content characters, enclosed by opening and closing delimiters
  • Removal of Nashorn
  • Deprecation of the RMI Activation mechanism