<<< An alternative to static blocks | Index | More things to discuss >>> |
All static initialization blocks are executed before the main method.
Therefore, the instance variables (all non-static variables inside the class) are created and populated after the static variables.
<<< An alternative to static blocks | Index | More things to discuss >>> |