Execution of Java static blocks in subclasses
问题 I am preparing myself for Java certification test and I have found an interesting question related to the execution of Java static blocks. I have spent a lot of time reading about this topic, but I didn't find the answer I was looking for. I know that static blocks are executed when the class is loaded into JVM or when the main method is invoked, but... package oneClassTasks; class Parent { static int age; } class Child extends Parent { static { age = 5; System.out.println("child's static