Persistent Systems interview question

What happens to static block when initially loaded in java

Interview Answer

Anonymous

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