after line to both s and t refer to same string object as string object can't be changed and alteration to it by t object will create new string object. In above case, when t.toUpperCase() in invoked new string object is made and assinged to t ?? is i am right ?
actually in kethy sera/bate book i m getting confustion that they have wrote that string will be "abandoned" coz it is not assinged to any string varible ?
please clear the above fundat in details... will be gladfull