What happens if multiple threads try to modify a StringBuilder instance?

Last Updated :
Discuss
Comments

What happens if multiple threads try to modify a StringBuilder instance?

It will throw a ConcurrentModificationException

It may cause unexpected results due to lack of synchronization

It will execute sequentially

It will behave the same as StringBuffer

Share your thoughts in the comments