0
string and list are immutable??
2 Risposte
+ 4
Strings are immutable, they cannot change, we can only ever make new strings . The string type value is immutable, but the String object, which is created by using the String() constructor, is mutable, because it is an object and you can add new properties to it.
However, Lists values or elements are mutable, they can change without making new lists.
+ 2
got it, thanks