Exam 1z0-816 All QuestionsBrowse all questions from this exam
Question 13

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

Which two are true? (Choose two.)

    Correct Answer: A, E

    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.

Discussion
Sa16253748596Options: AB

A,B is true