Question: Which of the following are valid functional interfaces? (Choose two.) A. interface CanClimb { } B. interface CanDance { } C. } interface CanFly {
Which of the following are valid functional interfaces? (Choose two.)

A. interface CanClimb { } B. interface CanDance { } C. } interface CanFly { D. default void climb() {} static void climb (int x) {} } E. int dance() { return 5; } interface CanRun { void run(); static double runFaster() {return 2.0; } } abstract void fly(); interface CanSwim { abstract Long swim(); boolean test();
Step by Step Solution
3.37 Rating (153 Votes )
There are 3 Steps involved in it
In Java a functional interface is an interface that contains exactly one abstract method These types ... View full answer
Get step-by-step solutions from verified subject matter experts
