I\'ve come across a class that includes multiple uses of a string literal, \"foo\".
What I\'d like to know, is what are the benefits and impact (in terms of object c
All String literals are kept in a String cache (this is across all classes)
Using a constant can make the code clearer, give the the string some context and make the code easier to maintain esp if the same string appears in multiple places.