How do we invoke a constructor
Answers
Answered by
2
This process continues until the constrcutor for
java.lang.Object is called, as java.lang.Object is the base class for
all objects in java. Before the body of the constructor is executed, all instance variable initializers and initialization blocks are executed. Then the body of the constructor is executed.
Similar questions
Computer Science,
7 months ago
Math,
7 months ago
Chinese,
7 months ago
English,
1 year ago
English,
1 year ago