How public static final variable works in Java?