Chapter 11Modules

OCP exam objectives covered in this chapter:

  • images  Understanding Modules
    • Describe the Modular JDK
    • Declare modules and enable access between modules
    • Describe how a modular project is compiled and run

images 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 ...

Get OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.