Re:Modules vs Microservices
by gravity_123 on Sunday March 26, 2017 @10:29PM
(#13964694)
>What happens is that every package except the ones exported are accessible to other modules.
I think you meant inaccessible :)
Obviously there's lots of more detail to go into. Of course I recommend you check out my upcoming book (early release available) for that: http://shop.oreilly.com/product/0636920049494.do
In short, Java makes a great step forward wrt. modularity. When regular JARs transition to modular JARs (adding a module descriptor), many more checks and balances are in place than are currently possible with the classpath.