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.

Related questions

0 votes
asked May 9 in JAVA by rahuljain1
0 votes
asked Aug 8, 2022 in SEO by Robin
...