0 votes
in JAVA by

What is the purpose of the “exports” 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 classes should be included in the module

d) To specify which classes should be accessible to other modules

1 Answer

0 votes
by
Answer: b) To specify which packages should be accessible to other modules

Explanation: The “exports” keyword is used in the module-info.java file to specify which packages should be accessible to other modules.
...