© Kishori Sharan 2017

Kishori Sharan, Java 9 Revealed, 10.1007/978-1-4842-2592-9_4

4. Module Dependency

Kishori Sharan

(1)Montgomery, Alabama, USA

In this chapter, you will learn:

  • How to declare module dependency

  • What an implicit readability of a module means and how to declare it

  • The difference between unqualified and qualified exports

  • Declaring runtime optional dependency of a module

  • How to open an entire module or its selected packages for deep reflection

  • Accessibility types in JDK 9

  • Splitting packages across modules

  • Restrictions on module declarations

  • Different types of modules: named, unnamed, explicit, automatic, normal, and open modules

  • How to dissemble a module’s definition using the javap tool

The example code in this chapter goes through several ...

Get Java 9 Revealed: For Early Adoption and Migration 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.