PrepZone Logo
PrepZone
Back to Java

Java · Easy

Differentiate between static initializer blocks and instance initializer blocks.

JavaCore Java

Answer preview

Static initializer block — Runs once when the class is first loaded by the JVM. Used to initialize static variables with complex logic that can't be done inline.…