1 min readSep 16, 2019
static initialization blocks are executed once when the classloader loads the class. Classes are loaded lazily when they are accessed for the first time: either when a new instance of the class is created or when a static field of the class is accessed.