Question: Why is this module-info incorrect for a service provider? A. The exports directive should be export. B. The exports directive should not be present because
Why is this module-info incorrect for a service provider?

A. The exports directive should be export.
B. The exports directive should not be present because all calls to the service provider should use the service locator.
C. The provides directive should be uses instead.
D. The provides directive has the implementation and interface in the wrong order.
E. The requires directive should be exports instead.
F. The requires directive should not be present because provides implies it.
module plant.flower { exports plant. requires plant.flower.api; provides plant.flower.api.Petal with plant. flower.impl.PetalImpl; } flower.impl;
Step by Step Solution
3.47 Rating (150 Votes )
There are 3 Steps involved in it
Based on the moduleinfo definition provided in the image we will analyze each of the statements provided A through F to determine which ones correctly ... View full answer
Get step-by-step solutions from verified subject matter experts
