People
Companies
Institutions
Jobs
Q&A
News
AI Dasatoo
Log in
Home
Courses
Tutors
Books
Q&A
Ask and answer questions to make information more available to wider audiences.
Tags
Latest
Ask Question
Noah Antills
@
noahantills
21, Mar 2023 12:00 AM
Strings are made immutable
What is the main reason why strings are made immutable?
answers
1
Answer 1
Benjamin Broadhurst
@
benjaminbroadhurst90
21, Mar 2023 10:23 PM
An immutable string is thread-safe. If one does not make a string immutable, then a change in one reference will inevitably affect the values of other references.