Posts

Showing posts from February, 2018

Introduction To Java 9 Features

1.  Overview In this post, I would like to introduce features that have been come up with JDK 9.Some of the major features are module system (jigsaw), Jshell(REPL), Collection Factory Methods, a private method in the interface, compact string, try with resources improvement, HTTP Client, Reactive Stream, Optional Class improvement, Stream API improvement. Let's look each in brief. 2. Module System Quoting overview of Module by Oracle chief architect Mark Reinhold: A module is a named, self-describing collection of code and data. Its code is organized as a set of packages containing types, i.e., Java classes and interfaces; its data includes resources and other kinds of static information. To control how its code refers to types in other modules, a module declares which other modules it requires in order to be compiled and run. To control how code in other modules refers to types in its packages, a module declares which of those packages it exports If we take ...