Java 9 – Environment Setup

If you want to set up your own environment for Java programming language, then this section guides you through the whole process. Please follow the steps given below to set up your Java environment. Java…

Java 9 – Miscellaneous features

Apart from mentioned features, with Java 9, a lot more enhancements are done to JDK platform. Some of them are listed below. GC (Garbage Collector) Improvements Stack-Walking API Filter Incoming Serialization Data Deprecate the Applet…

CompletableFuture API Improvements

CompletableFuture class was introduced in Java 8 to represent the Future which can be completed by setting its value and status explicity. It can be used as java.util.concurrent.CompletionStage. It supports dependent functions and actions which…

Java 9 – Multiresolution Image API

With Java 9, a new multi-resolution image API has been introduced which supports multiple images with different resolution variants. This API allows a set of images with different resolution to be used as a single…

Java 9 – Optional Class Improvements

Optional Class was introduced in Java 8 to avoid null checks and NullPointerException issues. In java 9, three new methods are added to improve its functionality. stream() ifPresentOrElse() or() stream() method Syntax If a value…

Java 9 – Inner Class Diamond Operator

Diamond operator was introduced in java 7 to make code more readable but it could not be used with Anonymous inner classes. In java 9, it can be used with annonymous class as well to…

Java 9 – Enhanced @Deprecated Annotation

@Deprecated annotation was introduced in java 5 version. A program element annotated with @Deprecated means it should not be used for any of the following reasons − Its usage may leads to errors. It may…