Curriculum
Course: Java Basic
Login

Curriculum

Java Basic

Java Home

0/1

Java Introduction

0/1

Java Get Started

0/1

Java Syntax

0/1

Java Comments

0/1

Java Type Casting

0/1

Java Operators

0/1

Java Booleans

0/1

Java Switch

0/1

Java Break / Continue

0/1

Java Errors and Exception

0/1
Text lesson

module

Example

State a module:

module mymodule {
}

Definition and Usage

The module keyword is used to declare a module. After the keyword, the module’s name is specified, followed by braces that can contain directives describing the module.

Note: The module keyword is intended for use in a module’s module-info.java file.

The module keyword was introduced in Java 9.