Question: Which of the following interface declarations will still compile if @FunctionalInterface is applied to each? (Choose two.) A. Dog B. KC C. Georgette D. Webby

Which of the following interface declarations will still compile if @FunctionalInterface is applied to each? (Choose two.) 

interface Dog { default void drink() {} void play(); } interface Astra

A. Dog

B. KC

C. Georgette

D. Webby

E. Astra.

interface Dog { default void drink() {} void play(); } interface Astra extends Dog { private static int eat () { return 1; } void fetch(); } interface Webby extends Dog { abstract void play(); default void rest() {} abstract String toString(); } interface KC {} interface Georgette extends Dog { int intelligence = 5; void jump(); }

Step by Step Solution

3.40 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The FunctionalInterface annotation is used to indicate that an interface is intended to be a functio... 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!