Java SE 14 release

Java SE 17 was released on March 14th.

The following changes are introduced:

  • Switch expressions in the form case VALUE -> {} have been added on a permanent basis, which leave the default condition and do not require a break statement.
  • Text blocks delimited by three quotation marks """ have reached the second preliminary stage. Added escape sequences , which does not add a newline before a line feed in a multiline block, and s, which denotes a single space.
  • On a preliminary basis, a new instanceof behavior is introduced to allow for further development of pattern matching.
  • Records with the keyword record are presented on a preliminary basis. Records automatically receive equals, hashCode, toString methods, getters to record members, and a constructor.
  • Improved description of NullPointerException errors.
  • Added jpackage packager for self-contained applications.
  • Ports for Solaris and SPARC platforms have been deprecated and may be removed in the future.

Source: linux.org.ru

Add a comment