A default constructor initializes all instance and class members to its default value.
is above statement True or False?
No. The default constructor does nothing other than call super().
super()
Instance fields are always initialized to their default values before any constructors are run (it isn't the constructor that does it).
And, of course, static fields ("class members") are not initialized by a constructor. That'd be silly.
No. The default constructor does nothing other than call
super()
.Instance fields are always initialized to their default values before any constructors are run (it isn't the constructor that does it).
And, of course, static fields ("class members") are not initialized by a constructor. That'd be silly.