📜  new string' 是多余的错误 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:20.208000             🧑  作者: Mango

代码示例1
It is always redundant to use the constructor of String that accepts another 
String as an argument, since String is immutable, and therefore there is no point in creating a new String 
instance that is equal to the original instance. It is redundant.