How to force a class to be initialised? [closed]
Loading != Initialization. You want your class to be initialized (this is when static blocks executed, among other things). An excerpt from the Java Language Specification says: A class or interface type T will be initialized immediately before the first occurrence of >any one of the following: T is a class and an instance of … Read more