Explore tweets tagged as #StringImmutability
@devkate_ritesh
AccioRD
2 years
"๐Ÿ”’ Strings stay unchangeable for good reasons: 1. ๐Ÿงต Thread Safety 2. ๐Ÿ” Hashing & Data Structures 3. ๐Ÿ”„ String Pool 4. ๐Ÿ’ก Predictability ๐Ÿš€ Create new ones for changes! Share thoughts below! #StringImmutability #programminglanguage
1
0
2
@unnamedcodes
Unnamed ๐Ÿฅท๐Ÿฟ
2 years
String Immutability ๐Ÿงต Strings are immutable, meaning you can't change a character directly. Methods return new strings. 'Hello'.replace('H', 'J') does not modify 'Hello'. #StringImmutability
1
0
0