Delete comment from: Javarevisited
Deep Shah said...
Hello Dir,
As u said:
"String A = "Test"
String B = "Test"
Now String B called "Test".toUpperCase() which change the same object into "TEST" , so A will also be "TEST" which is not desirable."
I tried this example but the output of String A does not changed it's till 'Test' instead of 'TEST'
So , can u please give me the example?
Jul 26, 2012, 8:39:12 AM
Posted to Why String is Immutable or Final in Java? Explained