April 2018
Intermediate to advanced
910 pages
33h 21m
English
As a professional developer, you always want your code to be secure, portable, and bug-free, which requires strict adherence to Java constructs such as encapsulation. There are occasions, such as with white box testing, that you need to break the encapsulation that the JVM mandates. This mandate permits cross-modular access.
To permit breaking the encapsulation, you can add an add-exports option in your module declaration. Here is the syntax you will use:
module com.three19.irisScan { - - add-exports <source-module>/<package> = <target-module> (, <target-module> )* }
Let's take a closer look at the preceding syntax. The <source-module> and <target-module> are module names and <package> is the name of ...