Question: Hello, This is java, I don't understand this method, do we have change the variable str once then we have to have new string again,
Hello, This is java, I don't understand this method, do we have change the variable str once then we have to have new string again, do we do this each time, why we are having "new string"?

Many of the methods of a String object can create new versions of the object. String str = new String(I am "); str = "who am I; str = new String (!?!"); int strSize = str.length(); 1/3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
