so i have this book and it says
"A String object is immutable its contents cannot be changed"
but Strings can change? at least in this code what does it mean by Strings cant be changed?
Code://String problem
public class string{
public static void main(String[] arg)
{
String Cheese = "THIS SHOULD NOT CHANGE STRINGS ARE IMMUTABLE";
System.out.println(Cheese);
Cheese = "Sally Mcsalad";
System.out.println(Cheese);
}
}

