How to change String value?? | Selenium Forum
M
Posted on 16/04/2016
Recently I attended an interview and interviewer asked me how do you change string value as you know string is an final class.
if String a="Something";
change it to a="Immute"
How to achieve above scenario?

I searched over internet but I don't get it exactly how to make it possible, please demonstrate this thing.

M
Replied on 18/04/2016

i'm not fully able to understand the question but this might help.


http://stackoverflow.com/questions/22397861/why-is-string-immutable-in-java