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?

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
The image shows a Java interface named Serval with a static method printNameString name and a nonsta... View full answer
Get step-by-step solutions from verified subject matter experts
