Oracle released Java 13 with notable new features for developers

Tram Ho

Summary of new news:

  • Oracle released JDK 13 with a number of improvements and new features.
  • Updates to improve the productivity of developers to a great extent.
  • The new release comes with features like Dynamic Archiving Class-data sharing, Preview Switch Expressions and more.

Oracle – the software giant has released Java SE and JDK 13 along with the promise of introducing more new features in the future in a six-month cycle.

At the start of the new release, Oracle said: Oracle JDK 13 increased developer productivity by improving the performance, stability, and security of the Java SE and JDK Platform.

Oracle SE Java product manager, Sharat Chander stated, Oracle provides Java 13 for businesses and developers. JDK 13 will receive a minimum of two updates, according to Oracle’s schedule, and Oracle JDK 14, scheduled to launch in March 2020.

New features of JDK 13

JEP 350- Share and save class data

The newly introduced JEP 350 to increase application class data sharing capability enables dynamic storage of classes after completion of execution of Java applications. All storage classes will have all loaded libraries and applications, not in the CDS archive.

JEP 351- Improve memory

JEP 351 is a solution for memory-related problems. For example, before implementing JEP 351 in JDK 13, garbage collectors, things that were not commonly used and returned memory to the operating system, even when not in use for a long time. However, with the help of JEP 351, garbage will be able to return unused memory to the OS.

JEP 353 – Legacy Socket API

The deployment used by ‘java.net.Socket’ and ‘java.net.ServerSocket API’ has been replaced by a simpler and more modern implementation, easy to maintain and debug, in JEP 353. This change is aimed at making it easier to adapt threads or fibers in user mode.

EP 354- Conversion preview expression

This new feature allows developers to use “switch” on a statement and an expression. From now on, we will be able to use the traditional case: “case …: labels” with the new ‘case … -> labels’. As a new addition to JDK 13, this feature was introduced to simplify the daily coding process.

JEP 355- Preview text block

The newly added feature of previewing text blocks allows developers to show some lines of code in a simpler way. With the help of this feature, it is possible to improve both the read and write capabilities of a Java program class.

Although Java is still considered one of the top 10 programming languages, its value and adoption are expected to increase with this release, making it a more attractive option to application development.

Share the news now

Source : CafeDev