I don't understand this part in Oracle docs?

前端 未结 4 1236
太阳男子
太阳男子 2021-01-23 10:41

Hi I am Ankur and have been coding with java for few years now..I have read Head first Java The Complete Reference by Herbert Schildt earlier and recently I came across a major

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-23 11:11

    Well in your example, if a class Student does not have any constructor, then the default no-param constructor is used, therefore the code indeed runs without a problem.

提交回复
热议问题