A static initialization block

A static initialization block


a. is used to initialize a static variable that can't be initialized in the declaration
b. is executed when a static method of the class is called
c. is executed when an instance of the class is created
d. all of the above
e. a and b only


Answer: d. all of the above


Learn More :