Hi All
A newbie question
Say if I have a
String objects
String s = "nothing special"; //line1
s = s.toUpperCase(); //line2
Now the s object reference in line2 is a new one & different from the 1 created initially at line1 as Strings are immutable objects
My question is what happens to the previous String object (s) in this case
Do respond
Rgrds
Rahil