String
constructor JAVA-S0062Creating a String
using object creation wastes memory because the new String
object so constructed will be functionally indistinguishable from the String
value passed as a parameter. Just use the string directly.
String a = new String("abc");
String a = "abc";