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? 

module plant.flower { exports plant. requires plant.flower.api; provides plant.flower.api.Petal with plant. flower.impl.PetalImpl;

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

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!