When you call new TestNull();, you call the constructor of the class TestNull, which it calls the constructor super(): it contains a call to the method implemented in TestNullwhere you print the String field, at that time the subclass fields TestNullare not yet initialized, i.e. are null.
, , , () .
, .
? , : , - (.. TestSuper).