9 Things You Should Know About Java Modules

Anish Antony
Javarevisited
Published in
3 min readFeb 11, 2021

--

Over this article, we are discussing about 9 Key things that you should know about Java Modules. Once you finish these points you will get an understanding of why Java Modules, What is Java Modules, How it help your development?

Photo by Kelly Sikkema on Unsplash

One of the great features that comes as part of Java 9 is Java Modules. Java Modules are Actually Packages of Packages, means it is able to encapsulate the packages. In Java 9 version you can see the installation folder structure is restructured. In java 9 there is a new folder that came which is called jmods. Inside of that, it contains all the core components are arraged in a modularized way. You can list out these all modules with java --list-modules command.

Here are the 9 points you should note about Java Modules.

1 The Java Modules are packages of packages. You can able to group a single or set of packages, it is called Module. For each Module, it is able to apply the rules like what are the dependent modules of this module, Services which it consumes, and Services which it provides.

2 Java Module Project the folder structure also changed. inside the src directory, it should need a folder which name is similar to the module name, under that there should need a file called module-info.java which is the module descriptor. All details about the module are listed in…

--

--

Anish Antony
Javarevisited

Fullstack Developer | Blogger | Experience on Java, Python, React, Angular, Golang | http://www.behindjava.com