Consider this code:
class Test {
Test() {
System.out.println(\"In constructor of Superclass\");
}
int adds(int n1, int n2) {
ret
super() is added in each class constructor automatically by compiler.
As we know well that default constructor is provided by compiler automatically but it also adds super() for the first statement.If you are creating your own constructor and you don't have either this() or super() as the first statement, compiler will provide super() as the first statement of the constructor.