問題文
A team has to place one name that a single component reads and another name that the whole set of deployed applications shares. Which pair of the four logical namespaces fits?
選択肢
- The java:module namespace for the first name and the java:app namespace for the second, since a name leaves the component level as soon as a second archive reads it
- The java:comp namespace for the first name and the java:global namespace for the second, since the widest of the four logical namespaces carries names shared beyond one application
- The java:global namespace for the first name and the java:comp namespace for the second, since a portable name written by a developer starts at the outermost level
- The java:app namespace for the first name and the java:module namespace for the second, since the enclosing application is the narrowest unit a lookup can address