static variables initialization
1.-3.You cannot exactly know when it happens and so you cannot depend on it. A static constructor will give you a little control what happens when it get called. public class UtilityClass { // // Resources // // r1 will be initialized by the static constructor static Resource1 r1 = null; // r2 will be … Read more