Question d’entretien chez Persistent Systems

What happens to static block when initially loaded in java

Réponse à la question d'entretien

Utilisateur anonyme

28 août 2015

Whenever any class is loaded it first allocates space for the static variable, then the static block is executed, thereafter the main function is called by the runtime.