Computer Science, asked by 19052, 1 year ago

How do we invoke a constructor

Answers

Answered by parmeshwarsingh
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