A
Alexander Mueller
I am using several constant strings (for comparisons, ....) and am
wondering whether javac is smart enough to notice that and creates one
string object which is used in the entire code or whether I would be
better off with a
private static final String VAR="VALUE";
and reference VAR. I think it is smart enough , but really would like
to have it confirmed.
Alexander
wondering whether javac is smart enough to notice that and creates one
string object which is used in the entire code or whether I would be
better off with a
private static final String VAR="VALUE";
and reference VAR. I think it is smart enough , but really would like
to have it confirmed.
Alexander