OCP exam objectives covered in this chapter:
- Understanding Modules
- Describe the Modular JDK
- Declare modules and enable access between modules
- Describe how a modular project is compiled and run
Since Java 9, packages can be grouped into modules. In this chapter, we will explain the purpose of modules and how to build your own. We will also show how to run them and how to discover existing modules. This book only covers the basics of modules that you need to know for the 1Z0-815 exam.
We’ve made the code in this chapter ...