Home > News content

JDK/Java 13 release

via:博客园     time:2019/9/18 13:45:33     readed:50

On September 17, JDK/Java 13 was officially GA.


This release brings the following new features:

  • JEP 350,Dynamic CDS ArchivesExtending application classes - data sharing to allow dynamic archiving of classes at the end of Java application execution. The archive class will include all loaded application classes and library classes that do not exist in the default underlying CDS (class data-sharing) archive.
  • JEP 351,ZGC: Uncommit Unused MemoryEnhance ZGC to return unused heap memory to the operating system.
  • JEP 353,Reimplement the Legacy Socket APIReplace the underlying implementations used by the java.net.Socket and java.net.ServerSocket APIs with simpler and more modern implementations that are easy to maintain and debug.

  • JEP 354:Switch Expressions (Preview)Switch expressions that can be used in a production environment, JDK 13 will bring a beta version of the implementation. Switch expressions extend switch statements so that they can be used not only as statement (statement), but also as expression (expression), and both can be written using traditional switch syntax, or using simplifiedPattern Matching (JEP 305)Make preparation.

  • JEP 355,Text Blocks (Preview)Add text blocks to the Java language. Text block is a multi-line string text, which avoids the need for most escape sequences, automatically formats strings in a predictable manner, and allows developers to control the format when needed.

See for details:Http://openjdk.java.net/projects/jdk/13

China IT News APP

Download China IT News APP

Please rate this news

The average score will be displayed after you score.

Post comment

Do not see clearly? Click for a new code.

User comments