What is the concept of immutable strings ?
Answers
Answered by
1
String is immutable means that you cannot change the object itself, but you can change the reference to theobject. When you execute a = "ty" , you are actually changing the reference of a to a new object created by the String literal "ty" . You're changing what a refers to.
Answered by
0
Tuples are immutable i.e the value cannot be changed. So, Option D is correct.
Similar questions