Java 13 features
Java 13 features:
- Text Blocks – JEP 355 with “””
- New Methods in String Class for Text Blocks
- Switch Expressions Enhancements – JEP 354
- Reimplement the Legacy Socket API with NioSocketImpl, is a drop-in replacement for PlainSocketImpl.
It uses java.util.concurrent locks rather than synchronized methods.
- Switch Expression enhancements with yield
- 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.
- newFileSystem(Path)
- newFileSystem(Path, Map<String, ?>)
- newFileSystem(Path, Map<String, ?>, ClassLoader)
Comments
Post a Comment