Constructor invocation in the inherited class
<p>This is a very basic question on Java. I've read somewhere that at first in the subclass's constructor the constructor of the super class is implicitly called. But I couldn't find the reference to the documentation, to read about that in detail. Could someone please provide this reference?</p>

<p>Here is an example of what I'm talking about, that outputs the <code>super sub</code> string:</p>

<pre><code>class SuperClass {
    static String s = "";
    protected SuperClass() { s += "super "; }
}

public class SubClass extends SuperClass {
    private SubClass() { s += "sub"; }
    public static void main(String[] args) {
        new SubClass();
        System.out.println(s);
    }
}
</code></pre>
