What is the use of Requires, Exports, Opens and provides within Module Descriptor ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. What is the use of Requires, Exports, Opens and provides within Module Descriptor ? Core Java
Ans. Requires specifies the dependencies for the module, i.e the modules required for this module to function.

Exports specifies the packages exported by the module.

Opens specifies the packages opened by the module.

Provides specifies the services provided by the module




 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java 9  java modules   java 9 modules


Related Questions

 Why do we have multiple core java jars in java 9 ?
 What is the concept of modules in Java 9 ?
 How modules are different than packages in Java 9 ?
 How Java 9 helps in building light weight applications ?
 Do we need different class loaders for different modules in Java 9 ?
 What is ModuleDescriptor ?
 What is ModuleLayer ?
 Difference between named and unnamed modules ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: