All important features of Java versions 8,9,10,11,12,13,14,15,16,17,18,19 and 20 in one tweet: #bookmark #follow #java #like Java 1.8 / Java 8 (2014) - The major game-changer [LTS] - Lambda expressions and functional interfaces. - Method references - Stream API for processing collections. - Date and Time API. - Default and static methods in interfaces. - Nashorn – JavaScript runtime which allows developers to embed JavaScript code within applications Java 9 (2017): - The module system (JPMS - Java Platform Module System) to deal with monolithic jars issue. - JShell: interactive Java REPL. - Improvements to Streams, Optional, and Try-With-Resources. - Private methods in interfaces. - HTTP 2 Client. Java 10 (2018): - Local-variable type inference (var keyword). - Experimental JIT compiler, Graal. - Docker awareness. - Garbage-Collector Interface - Heap Allocation on Alternative Memory Devices - Additional Unicode Language-Tag Extensions - Thread-Local Handshakes Java 11 (2018) - [LTS] - HTTP/2 Client API. - Epsilon: a no-op garbage collector. - Flight Recorder, which was previously a commercial feature, was open-sourced. - Local-variable syntax for lambda parameters. - String API Changes, Collection.toArray(IntFunction), -Files.readString(), Files.writeString() and Optional.isEmpty() Java 12 (2019) - Switch Expressions (preview). - Shenandoah: A low-pause-time garbage collector. - Support for Unicode 11 Java 13 (2019) - Text blocks (preview). - Switch expressions enhancements (preview). - Reimplement the Legacy Socket API Java 14 (2020) - Pattern matching for instanceof (preview). - Records (preview), which is a special kind of lightweight, immutable data class. - Text blocks and Switch expressions moved to a standard feature. Java 15 (2020) - Sealed classes (preview), which limit which other classes may extend or implement them. - The second preview of records and pattern matching for instanceof. - Removal of Nashorn JavaScript Engine and Solaris/SPARC Ports. Java 16 (2021) - Records and Pattern Matching for instanceof became standard features. - Introduction of Sealed Interfaces. - Vector API (Incubator) - Concurrent Thread-Stack Processing Java 17 (2021) - [LTS] - Sealed Classes and Interfaces moved to standard. - Deprecation of the Security Manager for removal in a future release. - Strong encapsulation for JDK internals. - Deprecate the Applet API for Removal - Pattern Matching for the switch (Preview) - Remove RMI Activation - Sealed Classes - Remove the Experimental AOT and JIT Compiler - Foreign Function & Memory API (Incubator) - Vector API (Second Incubator) - Context-Specific Deserialization Filters Java 18 (2022) - UTF-8 by Default - Reimplement Core Reflection with Method Handles - Vector API (Third Incubator) - Pattern Matching for Switch - Improvements to Javac Compiler - Expand Checks of Javac’s Serial Lint Warning in the newest version of Java - Code Snippets in Java API Documentation - String Deduplication - Finalization Deprecated for Removal 1.7. Internet-Address Resolution SPI - Simple Web Server Java 19 (2022) - Virtual Threads (Preview) - Structured Concurrency (Incubator) - Record Patterns (Preview) - Pattern Matching for the switch (Third Preview) - Foreign Function & Memory API (Preview) - Vector API (Fourth Incubator) Java 20 (2022) - Scoped Values (Incubator) - Record Patterns (Second Preview) - Pattern Matching for the switch (Fourth Preview) - Foreign Function & Memory API (Second Preview) - Virtual Threads (Second Preview) - Structured Concurrency (Second Incubator) - Vector API (Fifth Incubator) Blog post link: javaguides.net/2023/07/java-v…
@GuidesJava Thank you @GuidesJava for sharing .