Question: Which of these are functional interfaces? A. Lion B. Tiger C. Both Lion and Tiger D. Neither is a functional interface. E. The code does

Which of these are functional interfaces? 

interface } Lion { public void roar(); default void drink() {} String

A. Lion

B. Tiger

C. Both Lion and Tiger

D. Neither is a functional interface.

E. The code does not compile.

interface } Lion { public void roar(); default void drink() {} String toString(); interface Tiger { } public void roar (); default void drink() {} int hashCode ();

Step by Step Solution

3.39 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

A functional interface in Java is an interface that contains exactly one abstract method excluding t... 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!