Which two are true?

Given an application with a main module that has this module-info.java file:

Which two are true? (Choose two.)
A. A module providing an implementation of country.CountryDetails can be compiled and added without recompiling the main module.
B. A module providing an implementation of country.CountryDetails must have a requiresmain; directive in its module-info.java file.
C. An implementation of country.countryDetails can be added to the main module.
D. 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.
E. To run without an error, the application must have at least one module in the module path that provides an implementation of country.CountryDetails.

Download Printable PDF. VALID exam to help you PASS.

One thought on “Which two are true?

  1. // according to another website
    Correct module-info.java
    module main{
    exports country;
    uses country.CountryDetails;
    }

    //answer: BD

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.