Using new String(String) to duplicate a string is inefficient and almost always unnecessary.
String objects are immutable, so there is no need to copy them to protect against changes.
In some older versions of Java, String objects can share backing arrays with other String objects. In those ver...