Java 10 Features
Java 10 Features: Core library changes: Optional.orElseThrow : A new method orElseThrow has been added to the Optional class. It is synonymous with and is now the preferred alternative to the existing get method. APIs for Creating Unmodifiable Collections : The List.copyOf , Set.copyOf, and Map.copyOf methods create new collection instances from existing instances. New methods toUnmodifiableList, toUnmodifiableSet, and toUnmodifiableMap have been added to the Collectors class in the Stream package. These allow the elements of a Stream to be collected into an unmodifiable collection. c.System Property to Disable JRE Last Usage Tracking Local variable ‘var’ type inference Parallel Full GC for G1 Improve docker container detection and resource configuration usage Allow more flexibility in selecting Heap % of available RAM , Heap Allocation on Alternative Memory Devices Thread-Local Handshakes Removals: Removal of Support for Using Old LookAndFeel ...