The constructor of the subclass is the first one to be called, but it is the last one to finish.
The call to super() is the first statement of the constructor.
Parent class:
Child class:
Demo class:
Result:
The compiler automatically adds super() at the beginning of each constructor.
In fact, the subclass's constructor has a super() added before it.
The parent class also has it, but it calls the object class.