Module java.base
Package java.lang

Class Module

All Implemented Interfaces:

public final class Module extends Object implements AnnotatedElement
Represents a run-time module, either named or unnamed.

Named modules have a name and are constructed by the Java Virtual Machine when a graph of modules is defined to the Java virtual machine to create a module layer.

An unnamed module does not have a name. There is an unnamed module for each ClassLoader, obtained by invoking its getUnnamedModule method. All types that are not in a named module are members of their defining class loader's unnamed module.

The package names that are parameters or returned by methods defined in this class are the fully-qualified names of the packages as defined in section 6.5.3 of The Java Language Specification, for example, "java.lang".

Unless otherwise specified, passing a null argument to a method in this class causes a NullPointerException to be thrown.

See Java Language Specification:
7.7 Module Declarations
See Also: