When static variable loaded compile or runtime When static block loads
Answer: Static variable loaded at run time and static block will be executed when you load the class.
Answer: Static variable loaded at run time and static block will be executed when you load the class.