Test your knowledge
By default, a module requires:
The
java.base
module.The
java.lang
module.The
java.util
module.
There is a convention that specifies that the source code for a Java 9 module must be located in a directory with:
The same name as the main class exported by the module.
The same name as the module name.
The same name as the main type exported by the module.
Which of the following source code files is a module descriptor:
module-def.java
module-info.java
module-data.java
Which of the following keywords must be followed by the module name in the module descriptor:
name
module-name
module
The
exports
keyword followed by a package name in the module descriptor indicates that the module exports:All the classes declared within the package.
All the types declared within the package.
All the public types declared within the package.