What\'s the difference between requires and requires transitive module statements in module declaration?
For exam
The Java Language Specification for Java 9 explains it in very simple terms. From the section on Module Dependences:
The
requiresdirective specifies the name of a module on which the current module has a dependence....
The
requireskeyword may be followed by the modifiertransitive. This causes any module whichrequiresthe current module to have an implicitly declared dependence on the module specified by therequires transitivedirective.
In other words:
requires module Y,requires transitive module Z,requires module Z.