What is JPMS : Java Platform Module System

JPMS: JPMS i.e. Java Platform Module System may be a new feature that is introduced in Java 9. With the assistance of the Java module system, we will package our Java application and our Java packages into Java modules. With the assistance of the Java module, we will specify which of the packages of the module should be visible to other Java modules. A Java module must also specify which other Java modules are required to try to do its job.

 

The Java Platform Module System (JPMS) is a significant new feature introduced in Java 9 to address issues related to Java's traditional classpath system. JPMS is designed to improve the security, maintainability, and scalability of Java applications by providing a modular system for organizing and distributing Java code.

The primary goal of JPMS is to make it easier to develop and deploy large-scale Java applications by breaking them down into smaller, more manageable modules. Each module has its own set of dependencies, which are declared in a module descriptor file called module-info.java. This file specifies the module's name, version, and dependencies on other modules, as well as its exported packages and services.

JPMS also introduces a new way of loading modules, called the module path. Unlike the classpath, which is a flat list of directories and JAR files, the module path is a hierarchical structure of modules that can be loaded and unloaded dynamically at runtime.

One of the significant benefits of JPMS is improved security. The module system makes it easier to isolate and encapsulate code, preventing unauthorized access to sensitive resources and reducing the risk of security vulnerabilities. JPMS also provides better support for versioning and dependency management, making it easier to maintain and evolve complex Java applications over time.

In conclusion, JPMS is a significant improvement to the Java platform, providing developers with a powerful tool for organizing and managing complex Java applications. By adopting JPMS, developers can improve the security, scalability, and maintainability of their applications while also enjoying greater flexibility and control over the development process

Submit Your Programming Assignment Details