Prev Next

Java / JPMS

How JPMS/Modules works?

JPMS introduces a new level of abstraction above packages. Modules are defined using the module keyword in a module-info.java file. This file specifies:

Module Name: A unique identifier for the module.

Dependencies (requires): Other modules that this module depends on.

Exported Packages (exports): Packages that are accessible to other modules.

Provided Services (provides): Services that this module offers.

Consumed Services (uses): Services that this module uses.

More Related questions...

Show more question and Answers...


Comments & Discussions