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
...
This section is not available anymore. Please use the main Exam Page.1z0-819 Exam Questions
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
7Â months, 3Â weeks agocathDev
8Â months, 3Â weeks agod7bb0b2
11Â months, 3Â weeks agod7bb0b2
1Â year agoOmnisumem
1Â year, 2Â months agodilleman
1Â year, 2Â months agoAshan_Ozlov
1Â year, 2Â months agoStavok
1Â year, 5Â months ago