See below example:
class A {
A() { this(1); }
A(int i) { System.out.println("A" ); }
}
class B extends A {
B() {}
B(int i) { System.out.println("B" ); }
}
public class Test
{
public static void main(String[] args) {
A o = new B();
}
}
The output:
A
Q1:Seems java does not perform late binding for "this(1)". It has been decided at compile-time.Please confirm.
Q2:Java does not perform late binding on any constructors. Please confirm.
Q3:Does this mean constructors are implicitly final?