Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
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
1Â week, 5Â days agocathDev
1Â month, 1Â week agod7bb0b2
4Â months, 1Â week agod7bb0b2
5Â months, 1Â week agoOmnisumem
7Â months, 2Â weeks agodilleman
7Â months, 2Â weeks agoAshan_Ozlov
7Â months, 2Â weeks agoStavok
10Â months ago