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.

Verified Answer
Correct Option - c

To get all Infosys Certified Java SE11 Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in