class D {
{System.out.print("1");}
static {System.out.print("2");}
D() {System.out.print("3");}
D(
String s) {System.out.print("4");} // l3
}
class E extends D {
{System.out.print("5");}
static {System.out.print("6");}
// E() {System.out.print("7");this("e");} // l1
E() {this("e");System.out.print("7");} // l2
E(String s) {System.out.print("8");}
}
class F {
public static void main(String[] args) {
new E();
}
}
If I comment l1 its compile error free and
1.output is 2613587?
2.Can anyone run me through why the output is 2613587?
3.Why compile error at l1?
4. Why is it not executing l3?
Thanks