Question: Suppose you have the following interface in a module named animal.insect.api. What needs to be included in the module-info file for it to be a

Suppose you have the following interface in a module named animal.insect.api. What needs to be included in the module-info file for it to be a service provider interface? 

package animal.insect.api.bugs; public interface Bug { int crawl(); }

A. exports animal.insect.api;

B. exports animal.insect.api.bugs;

C. exports animal.insect.api.bugs.Bug;

D. requires animal.insect.api;

E. requires animal.insect.api.bugs;

F. requires animal.insect.api.bugs.Bug;

package animal.insect.api.bugs; public interface Bug { int crawl(); }

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

From the information provided in the question and the image it seems there is an interface named Bug within a package animalinsectapibugs To have a se... 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!