Page 1 of 1

About Question enthuware.ocpjp.i.v11.2.3108 :

Posted: Wed Aug 21, 2019 12:14 pm
by hamzaBlm
The second option:
It improves security and maintainability
This sounds pretty vague to me. How does the module system improve security and maintainability?

Re: About Question enthuware.ocpjp.i.v11.2.3108 :

Posted: Wed Aug 21, 2019 10:08 pm
by admin
Not really. It is quite simple. Modularization prevents access to classes that are not intended to be accessed by others. This protection is provided by the JVM. This makes it more secure because there are less chances of exploiting any weakness.
Modularization also prevents unintented dependency on classes/packages of a library. This obviously makes an application more maintainable.

For more detailed discussion, you may go through this book or this book.