public class Myclass
{
public static void main(String args[])
{
B b = new B("Test");
}
}
Class A
{
A()
{
this("1","2");
}
A(String s,String t)
{
this(s+t);
}
A(String s)
{
System.out.println(s);
}
}
class B extends A
{
B(String s)
{
System.out.println(s);
}
B( String s,String t)
{
this(s+t+"3");
}
B()
{
super("4");
}
}
In text it gives output 12 followed by Test.But i cant understand why it is printing like that???Pl clear me.