I encountered a question that asks \"Which of the following are true about the \"default\" constructor?\"
and an option \"It initializes the instance members of the cla
Whenever we are executing a java class, first Static Control Flow will be executed. In the Static Control Flow if we are creating an object then the following steps will be executed(in the mentioned order) as a part of Inatance Control Flow:
So, in your above code the instance variable "name" is already assigned to null(default value for reference types) even before the constuctor is executed.