Menu
Question Index
...

Which of the following code will generates compilation error?


class A {    
    public A(int x) {    }
}
class A {    }
class B extends A {
    B() {    }
}
class A {    
    A() {    }
}
class B {
    public B() {    }
}
class A {    
    public A(int c) { }    
}
class B extends A {    }
None of the above

Doubts

Problems

Topic: Inheritance And Constructors In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App