Question: Given the diagram in question 43 and the correct export statement to share only com. duckling, which of the following should be included in the

Given the diagram in question 43 and the correct export statement to share only com. duckling, which of the following should be included in the module-info.java file of com.park to specify that com.park should have access to the com.duckling and com. bread packages, but not the com.egg package?

com.duck com duckling Duckling.java egg Egg.java module-info.java com.bread com bread com.park module-info.java

A. require com.duck, com.bread;

B. requires com.duck; com.bread;

C. require com.duckling, com.bread;

D. requires com.duckling; com.bread;

E. None of the above.

com.duck com duckling Duckling.java egg Egg.java module-info.java com.bread com bread com.park module-info.java Food.java com park Grass.java module-info.java

Step by Step Solution

3.42 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To specify module dependencies in a JPMS Java Platform Module System moduleinfojava file you use the ... 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!