This one is a bit of conceptual question. I know strings are constant; their values cannot be changed after they are created. Consider this declaration -
private final static String ABC = "abc";
vs
private final String ABC = "abc";
Why is the first one better in terms of performance?
Is there any reason why the second one would be needed if the value of ABC not being updated in the class anywhere as such directly?
Thanks in advance.