Question: Given the diagram in question 78 and the following module-info.java for the panda module, what is the result of including line m1? A. Any modules

Given the diagram in question 78 and the following module-info.java for the panda module, what is the result of including line m1? 

module panda { requires mammal; requires transitive mammal; // line m1 }

A. Any modules that require mammal will automatically get panda as well.

B. Any modules that require panda will automatically get mammal as well.

C. There is no change in behavior.

D. The code does not compile.

image text in transcribed

module panda { requires mammal; requires transitive mammal; // line m1 }

Step by Step Solution

3.41 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In Javas module system the requires transitive directive is used to indicate that any module that de... 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!