Question: Suppose we want to have two modules: com.ny and com.sf. Which is true about the placement of the module-info.java file(s)? A. One module-info.java file is

Suppose we want to have two modules: com.ny and com.sf. Which is true about the placement of the module-info.java file(s)? 

module com.ny package com.ny.city V W Z module com.sf package com.sf.city X

A. One module-info.java file is required in position Z.

B. Two module-info.java files are required, in positions V and X.

C. Two module-info.java files are required, in positions W and Y.

D. Three module-info.java files are required, in positions V, X, and Z.

E. Three module-info.java files are required, in positions W, Y, and Z.

F. None of the above.

module com.ny package com.ny.city V W Z module com.sf package com.sf.city X Y

Step by Step Solution

3.53 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The module system in Java which was introduced with Java Platform Module System JPMS in Java 9 re... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!