Examine these module declarations:
Which two statements are correct? (Choose two.)
Examine these module declarations:
Which two statements are correct? (Choose two.)
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.
Correct Answer: C,D
Correct Answer: B,E
the correct answer is B &D