Java 9 | Eklavya Online

Java 9

Java 9 Features

Some of the important java 9 features are: Java 9 REPL (JShell) Factory Methods for Immutable List, Set, Map and Map.Entry Private methods in Interfaces Java 9 Module System Process API Improvements Try With Resources Improvement CompletableFuture API Improvements Reactive Streams Diamond Operator for Anonymous Inner Class Optional Class Improvements Stream API Improvements Enhanced @Deprecated …

Java 9 Features Read More »

Java 9 changes for Collections

n this post, we are going to discuss one more Java SE 9 New Feature: “Factory Methods for Immutable List, Set and Map” with some simple and suitable examples. Java SE 8: Empty Immutable List, Set and Map In Java SE 8 and earlier Versions, if we want to create an empty Immutable or Unmodifiable List, we …

Java 9 changes for Collections Read More »

Java 9 Private methods in Interfaces

Java 9 onwards, you can include private methods in interfaces. Before Java 9 it was not possible. Interfaces till Java 7 In Java SE 7 or earlier versions, an interface can have only two things i.e. Constant variables and Abstract methods. These interface methods MUST be implemented by classes which choose to implement the interface. // …

Java 9 Private methods in Interfaces Read More »

Java 9 Reactive Streams

Reactive Streams is about asynchronous processing of stream, so there should be a Publisher and a Subscriber. The Publisher publishes the stream of data and the Subscriber consumes the data. Sometimes we have to transform the data between Publisher and Subscriber. Processor is the entity sitting between the end publisher and subscriber to transform the data received from publisher so …

Java 9 Reactive Streams Read More »

Java 9 Try-With-Resources Improvements

Post Brief Table of Content: Introduction Java SE 7: Try-With-Resources Basics Java SE 7: Try-With-Resources Rules Java SE 9: Try-With-Resources Improvements Introduction Oracle Corporation is going to release Java New Version: Java SE 9 around End of March 2017. So, I would like to deliver a series of Posts on Java SE 9 New Features. …

Java 9 Try-With-Resources Improvements Read More »

Java 9: Stream API Improvements

Post Brief Table of Content: Introduction Java SE 8: Stream API Basics Java SE 9: Stream API Improvements Java SE 9: Stream API takeWhile() Method Java SE 9: Stream API dropWhile() Method Java SE 9: Stream API iterate() Method Java SE 9: Stream API ofNullable() Method Introduction Oracle Corporation is going to release Java New …

Java 9: Stream API Improvements Read More »