Domanda di colloquio di Persistent Systems

What happens to static block when initially loaded in java

Risposta di colloquio

Anonimo

28 ago 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.