0 votes
in JAVA by
What is the purpose of the “requires” keyword in a module-info.java file?

a) To specify which packages should be included in the module

b) To specify which packages should be accessible to other modules

c) To specify which modules are required by this module

d) To specify which modules require this module

1 Answer

0 votes
by

Answer: c) To specify which modules are required by this module

Explanation: The “requires” keyword is used in the module-info.java file to specify which modules are required by this module.

Related questions

0 votes
asked Apr 24 in JAVA by Robin
0 votes
0 votes
asked Aug 8, 2022 in SEO by Robin
...