Given:
Which two interfaces can you use to create lambda expressions? (Choose two.)
Given:
Which two interfaces can you use to create lambda expressions? (Choose two.)
To use an interface for creating lambda expressions, the interface must be a functional interface. A functional interface is an interface that has exactly one abstract method. In the provided code, interface P has one abstract method (method1()), making it a functional interface. Interface Q extends P but doesn't add any abstract methods, so it still has only one abstract method, making it a functional interface as well. Therefore, P and Q can be used to create lambda expressions.
C, E actually
CE is correct, D is wrong as S has no abstract methods to be implemented
C and E are correct.
Answer is C & E.
Answer : C, E