The exports to directive in the citizen module doesn't exempt the target module from explicitly requiring the dependency module.
Just specifying export package in the required module is not enough.
Agree with Stavok.
An exports…to directive enables you to specify in a comma-separated list precisely which module’s or modules’ code can access the exported package—this is known as a qualified export.
The correct answer is B. An exports module directive specifies one of the module’s packages whose public types (and their nested public and protected types) should be accessible to code in all other modules1. In this case, the citizen module exports the com.name package to the greeting module, making its public members accessible only to the greeting module.
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ASPushkin
2Â months agocathDev
3Â months agod7bb0b2
6Â months agod7bb0b2
7Â months agoOmnisumem
9Â months, 1Â week agodilleman
9Â months, 1Â week agoAshan_Ozlov
9Â months, 1Â week agoStavok
11Â months, 3Â weeks ago