Is it safe to assume that the following constants in Java 8+ are guaranteed to always be assigned the same values i.e. that the compiler will not reorder the statements for any reason, such as optimization?
public class MyClass {
private static int TIP = 0;
public static final int A = TIP++;
public static final int B = TIP++;
public static final int C = TIP++;
public static final int D = TIP++;
}