問題文
A module declaration needs to let other modules use the types in one of its packages, and it also depends on another module. Which pair of directives expresses that?
選択肢
- requires names the package that other modules may use, and exports names the module depended on.
- exports names the package that other modules may use, and requires names the module that this module depends on.
- opens names the package that other modules may use, and requires transitive names the module that this module depends on.
- exports names both the package and the module using it, and requires is for optional dependencies.