someString.concat("I am being concatenated to string");or somesuch, since Strings are immutable, a temporary object is created that contains the resulting string, correct?
Usually, when this is done, a new String object is created right away to contain it, something like
String newString = oldString.concat("I am being concatenated");but suppose that it isn't. In that case, would there be another way to access the concatenated string? (In this case, the sum of oldString and "I am being concatenated".)