❮ Java Keywords
Declare a module
module mymodule {
}Definition and Usage
The module keyword is used to declare a module. Following the keyword is the name of the module and braces which can contain directives describing the module.
Note
The module keyword is meant to be used in the module-info.java file of a module.
The module keyword was new in Java 9.
❮ Java Keywords