Posts

Showing posts with the label Java 10

Java 10 Features

In this article, we will discuss the various features added in Java10 release. Before that, let’s go over some changes introduced to java release model. Introduction Local Variable Type Inference Unmodifiable Collections.   copyOf(). , Unmodifiable*() Optional*.orElseThrow() Performance Improvements Container Awareness Root Certificates Deprecations and Removals Command Line Options and Tools APIs Time-Based Release Versioning Conclusion 1. Introduction JDK 10 , which is an implementation of Java SE 10, was released on March 20, 2018.In this article, we’ll cover and explore the new features and changes introduced in JDK 10. 2. Local Variable Type Inference   Overview  One of the most visible enhancements in JDK 10 is type inference of local variables with initializers. This tutorial provides the details of this feature with examples. Introduction Until Java 9, we had to mention the type of the local variable explicitly and ensure it was compatible with the initializer used to initializ