Call subclass constructor from superclass constructor

No, we cannot call subclass constructor from superclass constructor.

Example

class SuperClass{
     SuperClass(){
        System.out.println("SuperClass constructor");
        SubClass();
    }
}
public class SubClass extends SuperClass
{
    SubClass (){
        System.out.println("Subclass constructor");
    }
	public static void main(String[] args) {
		System.out.println("Constructor test");
	}
}

Output

SubClass.java:11: error: cannot find symbol
        SubClass();
        ^
  symbol:   method Main()
  location: class SuperClass
1 error

Java interview questions on constructor

Please Share