Necessity of static block in Java

I found that in Java, there is a feature called static block, which includes code that is executed when a class is first loaded (I don’t understand what ‘loaded’ means, does it mean initialized?). Is …

Java: “Local variable may not have been initialized” not intelligent enough?

Consider the following method: void a () { int x; boolean b = false; if (Math.random() < 0.5) { x = 0; b = true; } if (b) x++; } On x++ I get the "…