The JDK's modularization

By now, you have a firm appreciation of Java 9's modularization. The old adage in Java, and other object-oriented programming language, is everything is a class. Now, with Java 9, everything is a module is the new adage. There are three type of modules as explained as follows:

Module type Description
Automatic When a JAR is placed on a new module path, modules are automatically created
Explicit/Named These modules are manually defined by editing the module-info.java file
Unnamed When a JAR is placed on a classpath, unnamed modules are created

 

When you migrate your applications to Java 9, your application and its libraries become unnamed modules. So, you will need to ensure all the modules are in the ...

Get Java 9: Building Robust Modular Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.