Java 9 Module
The collection of packages and code into a single unit is called module . The module can be described with the help of module descriptor which is named by module-info.java and the module declarator describes the below three that were shown in the image.
Name of the module
The name of the module is named on the basis on the reverse domain pattern. It is mainly used to overcome the naming conflict in java. suppose we have the domain names as w3wiki.org the module name can be org.w3wiki .
The next point is that it should contain what does the module contains and what does the module export in the java
Java Modules
Java Module System provides an additional layer of encapsulation to our programs as we can specify which package can be utilized by the modules, and which modules could have entry to to them. Before entering into the exclusive types of modules in Java, we will first learn the differences among applications and modules. We recognize that there are numerous applications in Java including IO bundle, AWT package, swing bundle, and so on.
Contact Us