Menu
Question Index
...

Which of the following classes fail to compile.

interface I1
{
    void I1m1();
}

interface I2 extends I1
{
    void I2m2();
}

abstract class A extends I1, I2
{
    public void I2m2()
    {

    }

    public void I1m1()
    {

    }
}

abstract class B
{

}

class C extends A, I1, I2
{

}

class D extends A
{

}


A, B, C, D
A, C, D
B, C
B, C, D
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