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.)

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
The FunctionalInterface annotation is used to indicate that an interface is intended to be a functio... View full answer
Get step-by-step solutions from verified subject matter experts
