Java variable loading order of priority
This gives an example of the order in which variables are loaded during class Instantiation.
package uk.org.code13.orderofpriority;
public class Example {
public static Integer one = 1; // First
static {
Integer two = 2; // Second
}
{
Integer three = 3; // Third
}
public Integer four = 4; // Fourth
public Example() {
Integer five = 5; // Fifth
}
}