Menu
Question Index
...

Which of the following classes fail to compile.

interface I1 {
    void m1();
}

interface I2 extends I1 {
    void m2();
}

abstract class A implements I1 {
    public void m1() {}
    public void m2() {}
}

abstract class B implements I2 {}

class C extends A implements I1, I2 {}

class D extends A {}


A, B, C, D
B, C, D
B, C
C
All of them compile

Doubts

Problems

Topic: Creating Interface In Java With Example Program

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App