Oracle
1Z0-819 · Question #59
1Z0-819 Question #59: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-819 to reveal the answer and full explanation for question #59. The question stem and answer options stay visible for context.
Question
Given an application with a main module that has this module-info.java file:
module main {
exports country;
uses country.CountryDetails;
}
Which two are true? (Choose two.)
Options
- AA module providing an implementation of country.CountryDetails can be compiled and added without recompiling the main module.
- BB. A module providing an implementation of country.CountryDetails must have a requires main; directive in its module-info.java file.
- CC. An implementation of country.CountryDetails can be added to the main module.
- DD. To compile without an error, the application must have at least one module in the module source path that provides an implementation of country.CountryDetails.
- EE. To run without an error, the application must have at least one module in the module path that provides an implementation of country.CountryDetails.
Unlock 1Z0-819 to see the answer
You've previewed enough free 1Z0-819 questions. Unlock 1Z0-819 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.