If the Object class contains default constructor generated by compiler then it must have a super(); declaration. If this declaration is there than which parent class constructor is it calling? And how?
Because Object is the parent of all classes, I think if I call super(); in the Object class constructor then it should give us compile time error because we know Object doesn't inherit from anything.
class Test
{
Test()
{
super();
}
public static void main(String[] args)
{
Test t = new Test();
}
}