What is the Module System (JPMS) introduced in Java 9 and what problem does it solve compared to the classpath?

Java Professional Hard

Java Professional — Hard

What is the Module System (JPMS) introduced in Java 9 and what problem does it solve compared to the classpath?

Key points

  • JPMS solves classpath hell by introducing named modules
  • It provides explicit dependencies and exports
  • Strong encapsulation ensures better control over module dependencies
  • Reliable configuration helps avoid version conflicts
  • Access to internal APIs is controlled within modules

Ready to go further?

Related questions