Question: Consider the modules diagram in question 17. Suppose we want the code in module com.sf to depend on code in module com.ny. Which of the

Consider the modules diagram in question 17. Suppose we want the code in module com.sf to depend on code in module com.ny. Which of the following directives goes into module com.ny’s module-info file to configure that behavior? 


Diagram in question 17.

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.36 Rating (143 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The question seems to be referring to the configuration of Java modules using moduleinfojava files in a Java modular system which are part of the Java ... 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!