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

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

1 Expert Approved Answer
Step: 1 Unlock

In Java a functional interface is an interface that contains exactly one abstract method These types ... 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!