Java 13 – Dynamic CDS archive

CDS, Class Data Sharing is an important feature of JVM to boost the startup time of an application loading. As it allows to share class metadata across different JVMs, it reduces the startup time and…

Java 13 – ZGC Enhancements

The ZGC or Z Garbage Collector was introduced with Java 11 as a low latency garbage collection mechnism. ZGC makes sure that Garbage Collection pause time is not dependent on heap size. It will never…

Java 13 – Socket API Reimplementation

Java 13 have reimplemented the Java Socket API. Old Socket APIs like java.net.Socket and java.net.ServerSocket has been replaced. PlainSocketImpl is no more in use, now the Socket API provider points to NioSocketImpl. New implementation leverages the java.nio infrastructure for…

Java 13 – Miscellaneous Changes

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…

Java 13 – Text Block Methods

Java 12 introduces text blocks to handle multiline strings like JSON/XML/HTML etc and added new methods to String class to handle text blocks. It is a preview feature. stripIndent() – removes incidental white spaces from the…

Java 13 – Text Blocks

Java 13 introduces text blocks to handle multiline strings like JSON/XML/HTML etc. It is a preview feature. Text Block allows to write multiline strings easily without using \r\n. Text Block string have same methods as…

Java 13 – Switch Expressions

Java 12 introduces expressions to Switch statement and released it as a preview feature. Java 13 added a new yield construct to return a value from switch statement. It is still a preview feature. Consider…