Given:
interface A{
public void m1();
}
interface B extends A{
public default void m2() {
System.out.println("M2");
}
}
interface C extends B{
public default void m3() {
System.out.println("M3");
}
}
interface D extends C{
public void m4();
}
Choose the correct option with respect to the above code.
A and B are functional interfaces, but C and D are not functional interfaces.
A is functional interface, but B, C, and D are not functional interfaces.
A, B, and C are functional interfaces, but D is not functional interface.
A and D are functional interfaces, but B and C are not functional interfaces.
To get all Infosys Certified Java SE11 Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee