Posts

Showing posts with the label JDK 19

Java 19 Features | What's new in Java 19?

Image
Java 19 Features JDK 19 is the open-source reference implementation of version 19 of the Java SE Platform as specified by JSR in the Java Community Process. Some of the important Java 17 features are: Text Blocks – JEP 355 Switch Expressions Enhancements – JEP 354 Reimplement the Legacy Socket API – JEP 353 Dynamic CDS Archive – JEP 350 ZGC: Uncommit Unused Memory – JEP 351 Value types, objects without identity but with an efficient memory layout. 64-bit addressable arrays to support large data sets. Pattern matching, a mechanism for testing and deconstruction values. This feature might be added to the switch-expression and the instance-of-expression. Sealed types, a mechanism for declaring all possible subclasses of a class. Together with the record and pattern matching features this is used to implement algebraic data types. Some More java 19 features are coming up. We will discuss once openjdk Java Community Process released some information. JDK 19 Features: