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?

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
A functional interface in Java is an interface that contains exactly one abstract method excluding t... View full answer
Get step-by-step solutions from verified subject matter experts
