• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

The other advantages of Java 9 Modularity

Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Author,

In theory, we know that the advantages of using Java 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
Ref: webpage

what are the other selling points that Java 9 modularity presents?

Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
    Screaming fools! It's nothing more than a tiny ad:
    Devious Experiments for a Truly Passive Greenhouse!
      Bookmark Topic Watch Topic
    • New Topic