如果没有,父类的私有字段存储在哪里?实际上,您可以调用父对象的任何方法(使用或不使用super),该方法操作对调用对象不可见的私有字段.
如果有人最熟悉Java内存模型,那么非常欢迎他或她的回答!
With this constructor a new object of the parent is created as well behind the scenes?
不,只创建了一个实例.创建的实例包含当前类及其所有超类的属性.
If not,where are the private fields of the parent class stored?
与所有类属性一样,它们存储在堆上.如果它们是在当前类或超类中定义的,则在内存位置方面没有区别.