Switch to Dark Mode

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

Last Updated : Mar 27, 2025
Discuss
Comments

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


A

String

B

StringBuffer

C

StringBuilder


D

None of the above

Share your thoughts in the comments