Java Tutorial

Java Control Statements

Object Oriented Programming

Java Built-in Classes

Java File Handling

Java Error & Exceptions

Java Multithreading

Java Synchronization

Java Networking

Java Collections

Java Interfaces

Java Data Structures

Java Collections Algorithms

Advanced Java

Java Miscellaneous

Java APIs & Frameworks

Java Class References

Java Useful Resources

Java 13 - New Features



Java 13 is a major feature release and it has brought many JVM specific changes to JAVA and few language specific changes. It followed the Java release cadence introduced Java 10 onwards and it was releasd on Sept 2019, just six months after Java 12 release.

Java 13 is a non-LTS release.

New Features in Java 13

Following are the major new features which are introduced in Java 13.

  • JEP 354 - Switch Expressions - A preview feature allowing switch to use return values via yield.

  • JEP 355 - Text Blocks - A preview feature to handle multiline strings like JSON, XML easily.

  • String new methods - New Methods added to string to handle text blocks.

  • JEP 353 - Socket API Reimplementation - Underlying API is rewritten.

  • FileSystems.newFileSystem() - Three new methods added to make it easy to use.

  • DOM/SAX Factories - New methods added to add namespace support.

  • Dynamic CDS Archive - CDS archive can be created easily.

  • JEP 351 - ZGC Enhancements - ZGC enhanced to return unused heap memory to operating system.

Java 13 have introduced three new methods to java.nio.file.FileSystems to treat the content of a file as a file system easily.

  • newFileSystem(Path)

  • newFileSystem(Path, Map<String, ?>)

  • newFileSystem(Path, Map<String, ?>, ClassLoader)

Following are other major changes added to language.

  • java.time – Japanese era name added

  • javax.crypto – MS Cryptography Next Generation (CNG)support

  • javax.security – jdk.sasl.disabledMechanisms property added disabling SASL mechanisms

  • javax.xml.crypto – String constants introduced to represent Canonical XML 1.1 URIs

  • javax.xml.parsers – Methods added to instantiate DOM and SAX factories for namespaces support

  • Unicode support is upgraded to version 12.1

  • Kerberos principal name canonicalization support added, cross-realm referrals are supported.

API marked for Removal

  • SocketImpl implementations prior to JDK 1.4

  • javax.security.cert API

  • rmic

  • javadoc tool old features

Other details are available at following link − APIs proposed for removal.

Advertisements