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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.