Answers for "new string' is redundant error"

0

new string' is redundant error

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.
Posted by: Guest on November-01-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language