Why String methods never change the original String
In one line: Every String method returns a new object, so unassigned results are lost and a String parameter reassignment never reaches the caller.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read every lesson — your progress is saved.