
- Java 13 Tutorial
- Java 13 - Home
- Java 13 - Overview
- Java 13 - Environment Setup
- Java 13 Language Changes
- Java 13 - Switch Expressions
- Java 13 - Text Blocks
- Java 13 - Text Block Methods
- Java 13 - Socket API Reimplementation
- Java 13 - Miscellaneous Changes
- Java 13 JVM Changes
- Java 13 - Dynamic CDS Archive
- Java 13 - ZGC Enhancements
- Java Other Versions Tutorials
- Java Tutorial
- Java 8 Tutorial
- Java 9 Tutorial
- Java 10 Tutorial
- Java 11 Tutorial
- Java 12 Tutorial
- Java 13 Useful Resources
- Java 13 - Quick Guide
- Java 13 - Useful Resources
- Java 13 - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Java 13 - Overview
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
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 enhanced numerous APIs with new methods and options. We'll see these changes in next chapters.