This is a Series of Articles on the Latest Features of Java 9. Starting with Why and How of the Java 9 Modules Feature and Moving Forward.

Author: Shazin Sadakath


Why is a module path better than a class path? 

Class path 


Module Path 

 

So now instead Dependency List as with Classpath, we have a Module Dependency Graph which is Directed Graph on Dependencies. 

 

Following is the Dependency Graph for java.se module which is the Entire JVM Utilities available out of the box.

 

 

Breaking a single rt.jar into modules which can be defined in the graph shown above was the reason why Java 9 release took longer than other Java releases. It must have been very difficult task for the Engineering team and hats off to them.

 

So what about Backward Compatibility??

 

All Old Codes which are not modularized (available in Classpath) will be put into a one big module called the "Unnamed Module". That module will by default

This sort of behavior allows Java code to incrementally modularized when and if required. 

 

 

 



Tags: Java9
Views: 1311
Register for more exciting articles

Comments

Please login or register to post a comment.


There are currently no comments.