Originally posted by William Brogden:
I don't understand where the problem is - since your program does not attempt to change the value of a final variable, the modifier has no effect.
Bill
William, it is the output. On the second output the
"Initialization of Loaded" is gone.
the result is:
final = final
Initialization of Loaded
non-final = non-final
And when I add change a little bit in the last sentence, like
public static final String y = "non-final";
the result is:
final = final
non-final = non-final