This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

The other advantages of Java 9 Modularity

Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
    You showed up just in time for the waffles! And this tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
      Bookmark Topic Watch Topic
    • New Topic