The general part does not matter - and it does not matter that the class is nested. Look at this almost equivalent pair of classes, and this should be more obvious:
public class SuperClass
{
public SuperClass()
{
new SubClass();
}
}
public class SubClass extends SuperClass
{
public SubClass()
{
super();
}
}
Thus, the subclass constructor calls the superclass constructor, which then creates a new subclass, which calls the superclass constructor, which creates the new subclass, etc. bang!
source
share