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
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.