MCQ
Single Best Answer
Not Set
QWhat is the output of the following program code?
abstract class C1{
public C1(){
System.out.print(1);
}
}
class C2 extends C1{
public C2(){
System.out.print(2);
}
}
class C3 extends C2{
public C3(){
System.out.println(3);
}
}
public class Test{
public static void main(String[] a){
new C3();
}
}
ID: #2254
Inheritance in Java MCQ
2,750 views
Question Info
#2254Q ID
Not SetDifficulty
Inheritance in Java MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
123
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic