Java SE 14 was released on March 17.
The following changes are introduced:
- Expressions for switch in the form case VALUE -> {} have been permanently added, which exit the default condition and do not require a break statement.
- Text blocks, delimited by triple quotes """ have moved to the second preview phase. Control sequences have been added, which do not introduce a newline before the line break in multiline blocks, and s, which denotes a single space.
- A new instanceof behavior has been introduced as a preview, allowing for further development in pattern matching.
- Records with the keyword record are introduced as a preview. Records automatically receive equals, hashCode, toString methods, getters for record members, and a constructor.
- Error descriptions for NullPointerException have been improved.
- A jpackage wrapper for self-contained applications has been added.
- Ports for Solaris and SPARC platforms have been deprecated and may be removed in the future.
Source: linux.org.ru
