concept single module in category java

appears as: single module
The Java Module System

This is an excerpt from Manning's book The Java Module System.

You can see a list of all modules contained in a JDK or JRE by running java --list-modules. To get details for a single module, execute java --describe-module ${module-name}. (${module-name} is a placeholder, not valid syntax—replace it with your module of choice.)

It’s important to recognize this single-src structure for what it is: the structure of a particular project (the JDK) and a proposal used in introductory material. Due to its tendency to split a single module’s files across parallel trees, I wouldn’t advise following it for anything but the smallest projects or ones where a meticulous examination concludes that this structure is preferable. Otherwise, I recommend using the established default, which we’ll discuss next.