Computer Science, asked by Akhilsingh8454, 1 year ago

What is the concept of immutable strings ?

Answers

Answered by sarayu56
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 Anonymous
0

Tuples are immutable i.e the value cannot be changed. So, Option D is correct.

Similar questions