Java 13 features

 Java 13 features:



  1. Text Blocks – JEP 355 with “””
  2. New Methods in String Class for Text Blocks
  3. Switch Expressions Enhancements – JEP 354
  4. Reimplement the Legacy Socket API with NioSocketImpl, is a drop-in replacement for PlainSocketImpl.

It uses java.util.concurrent locks rather than synchronized methods. 

  1. Switch Expression enhancements with yield
  2. FileSystems.newFileSystem() Method

Three new methods have been added to the FileSystems class to make it easier to use file system providers, which treats the contents of a file as a file system.

  1. newFileSystem(Path)
  2. newFileSystem(Path, Map<String, ?>)
  3. newFileSystem(Path, Map<String, ?>, ClassLoader)








Comments

Popular posts from this blog

Java 12 Features

Java 11 Features