Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Jigsaw and Modules
The other advantages of Java 9 Modularity
satya Priya Sundar
posted 3 months ago
In theory, we know that the advantages of using
module system are
It provides a reliable configuration and strong encapsulation that would prevent
1. Brittle, error-prone classpath (AKA JAR Hell)
2. JDK into modules so that we only use what we need contrary to the prior JDK versions
what are the other selling points that Java 9 modularity presents?
posted 2 months ago
Those two are pretty significant, but there are indeed a few more:
strong encapsulation will improve security of the platform and maintainability of the platform and all projects that start using it
building a module graph may improve launch performance (I assume, not much, though)
with jlink you can create runtime images that only contain the Java module you want or images that include your entire application
That said, I think if someone doesn't buy the module system for strong encapsulation alone, they're unlikely to buy it as a whole.
Everybody! Do the Funky Monkey! Like this tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
Boost this thread!
Java 9 Modularity: Does the Java 9 module system help force me to think more modular?
Project Jigsaw - but why?
What is the real benefit of using Jigsaw (modular system) in regular Java applications
Is Jakartha EE the new standard & JDK 8 based?
Modularization & componentization for pre Java 9 applications to achieve modularity