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?

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.

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
In Javas module system the requires transitive directive is used to indicate that any module that de... View full answer
Get step-by-step solutions from verified subject matter experts
