PPT Slide
One cannot change contents of a String object. (We say: “Strings are immutable”.)
You may think you are modifying a String. But, what happens
* a new String is created
* your old String may be ‘garbage collected’; you no longer
have a reference to the old String
String str1 = “Hello World”
Strings vis-a-vis Objects