Wednesday, October 14, 2015

static in Java - 1

When static block in java class is executed ?
     a) when the class is compiled
     b) when the first method in class is executed
     c) when the object is created, but before the constructor is called
     d) when the object is created and after the constructor is called
     e) when the class is loaded

©K.A.N. Nancy

2 comments: