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

Examine these module declarations:

Which two statements are correct? (Choose two.)

    Correct Answer: B, E

    The placement of the com.example.api API in a separate module, ServiceAPI, indeed makes it easier to install multiple provider modules. By having the API in its own module, different modules can implement the API without modifying the API module itself, thus allowing for flexibility and easy swapping of implementations. The ServiceProvider module, on the other hand, does not need to know the identity of any modules that use the com.example.api API. This separation of concerns adheres to the principle of module decoupling, where the provider does not need to be aware of the consumers of the service.

Discussion
PontPontOptions: CD

Correct Answer: C,D

JammyLin12345Options: BE

Correct Answer: B,E

NayoumiOptions: BD

the correct answer is B &D