What does strong encapsulation mean in JDK 9? How do you migrate your current application to modules? Alex Buckley explains in great detail the key concepts behind modules. He describes how the module system can improve the structure of your code, how you can migrate your application progressively by mixing modular and non-modular code, and how a modular JDK enables better compatibility.
The module system is a big part of the JDK 9 release, which is planned for September. With JDK 9, you will still be able to run your applications on the classpath. The new module system is built into the Java language and the virtual machine. Your applications and the libraries you use can be packaged, tested and deployed as modules managed by the module system. A module is essentially a set of packages that make sense being grouped together and is designed for reuse. Since the full platform is modular, the modular system is more reliable, easier to maintain and secure. Those benefits are shown in examples described through out this presentation.