1
JavaIntermediate#puzzle#fundamentals
Static blocks run once when the class is first loaded, before any instance is created. Instance blocks run every time a new object is created, right before the constructor body.
new A(); new A(); // Output: // static A // instance A // constructor A // instance A // constructor A