Sail E0 Webinar
Question
Determine output:class Small{ public Small(){ System.out.print("a "); }}class Small2 extends Small{ public Small2(){ System.out.print("b "); }}class Small3 extends Small2{ public Small3(){ System.out.print("c "); }}public class Test{ public static void main(String args[]){ new Small3(); }}
Options:
A .  a
B .  c b a
C .  a b c
D .  c
E .  The code runs without output..
Answer: Option C

Submit Your Solution Below and Earn Points !

Submit Solution

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

Latest Videos

Latest Test Papers