O'Reilly logo
  • Giovanni Armeno thinks this is interesting:

And there are two guarantees about static initialization:

Static variables in a class are initialized before any object of that class can be created.

Static variables in a class are initialized before any static method of the class runs.

Note

All static variables in a class are initialized before any object of that class can be created.

From

Cover of Head First Java, 2nd Edition

Note

Sequenza di esecuzione elementi statici