Question: Which lambda can implement this functional interface? A. () -> System.out.println() B. n -> System.out.println(n) C. () -> true D. n -> true E. None

Which lambda can implement this functional interface? 

public interface Serval { static void printName (String name) {} boolean cat

A. () -> System.out.println()

B. n -> System.out.println(n)

C. () -> true

D. n -> true

E. None of the above.

public interface Serval { static void printName (String name) {} boolean cat (String name) { return true; } }

Step by Step Solution

3.31 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The image shows a Java interface named Serval with a static method printNameString name and a nonsta... 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!