In Java , when an object is created, initialization is done in this order: Set fields to default initial values (0, false, null) Call the constructor for the object (but don't execute the body of the constructor yet) Invoke the constructor of the superclass Initialize fields using initializers and initialization blocks Execute the body of the constructor
In Java , when an object is created, initialization is done in this order: