Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.
Java Modules and the Java Platform Module System (JPMS) enhance modularity, encapsulation, and maintainability in Java applications. Introduced in Java 9, JPMS allows developers to organize code into well-defined modules with controlled dependencies, which helps mitigate issues like JAR conflicts and improves application performance and security. The chapter covers the structure of modules, the module-info.java descriptor, and various directives such as requires and exports, along with the benefits and limitations of the new system.
References
AJP ch13.pdfClass Notes
Memorization
What we have learnt
Final Test
Revision Tests
Term: Module
Definition: A self-contained unit of code that groups related packages and specifies which packages to export and which modules to require.
Term: moduleinfo.java
Definition: A file that acts as a descriptor for Java modules, declaring module dependencies and exports.
Term: JPMS
Definition: Java Platform Module System, introduced in Java 9 to enhance modularity, security, and maintainability of Java applications.
Term: requires Directive
Definition: A declaration in module-info.java that specifies dependencies between modules.
Term: exports Directive
Definition: A declaration that specifies which packages are made accessible to other modules.
Term: opens Directive
Definition: A declaration to open a package for reflection, allowing access to its members at runtime.