Sail E0 Webinar
Question
What 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(); } }
Options:
A .  321
B .  23
C .  123
D .  12
Answer: Option C

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :

Question 2. Which is true?....

Latest Videos

Latest Test Papers