diff --git a/study/study.MD b/study/study.MD index 2a7a3b3..733364a 100644 --- a/study/study.MD +++ b/study/study.MD @@ -404,7 +404,16 @@ A obj = new B(); Here, it would be normal to assume that it simply prints a asterisk. -But really, +But, as one should know, Java inserts a no-argument `super()` call to the superclass *if one is not **explicitly** invoked* inside the subclass constructor. + +Behind the scenes, `B`'s constructor really behaves like this: + +```java +B() { + super() + out.println("*"); +} +``` ### List.remove() Element Shifting