unnamed module

The module that holds every class loaded from the class path.

In more detail

The unnamed module reads every other module and exports all its packages, but no named module can require it. Code on the class path therefore cannot be used by a named module except through an automatic module. Class.getModule().isNamed() is false for it.

Example

Main.class.getModule().isNamed() // false on the class path

Related terms

Taught in

References

Certification courses