Skip to main content

Instance and Static Initializer Blocks

Learn Instance and Static Initializer Blocks (Advanced Java Concepts, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

1. Introduction Initializer blocks run code during initialization: instance blocks per object before the constructor body, and static blocks once at class loading.

More lessons in Advanced Java Concepts