Given an application with a main module that has this module-info.java file:
Which two are true? (Choose two.)
Given an application with a main module that has this module-info.java file:
Which two are true? (Choose two.)
The module-info.java file specifies that the main module exports the 'country' package and uses the 'country.CountryDetails' service. This means that the main module depends on an implementation of the 'country.CountryDetails' service. It is true that a module providing an implementation of 'country.CountryDetails' can be compiled and added without recompiling the main module, since the main module just references the interface and does not need to know about the specific implementation. Furthermore, to run without an error, the application must have at least one module in the module path that provides an implementation of 'country.CountryDetails', otherwise the service would not be available at runtime.
A,B is true