Which class should be used when multiple threads need to modify the same string?

Last Updated :
Discuss
Comments

Which class should be used when multiple threads need to modify the same string?


String

StringBuffer

StringBuilder


None of the above

Share your thoughts in the comments