About Question enthuware.ocpjp.v21.2.4023 :
Posted: Wed Aug 27, 2025 6:00 am
Hello,
option d) Only public members of the com.amazing.movies package are accessible only to the members of the rentals module.
option e) Inserting requires movies; in rentals module-info enables the rentals module to access members of the com.amazing.movies package of the movies module. (Explanation: The exports and exports-to clauses only make the public members of a package eligible to be accessed from outside the module. But for another module to access the exported packages, it must also have an appropriate requires clause.)
is not the explanation of the correct answer makes the option d correct?
option d) Only public members of the com.amazing.movies package are accessible only to the members of the rentals module.
option e) Inserting requires movies; in rentals module-info enables the rentals module to access members of the com.amazing.movies package of the movies module. (Explanation: The exports and exports-to clauses only make the public members of a package eligible to be accessed from outside the module. But for another module to access the exported packages, it must also have an appropriate requires clause.)
is not the explanation of the correct answer makes the option d correct?