bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Java/Java Reference
Java•Java Reference

Java module Keyword

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind Java module Keyword?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___ mymodule {
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The module keyword is used to declare a module.
Definition and Usage
Java module Keyword

❮ 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

Previous

Java long Keyword

Next

Java native Keyword