StringBuffer
a StringBuffer is a mutable sequence of characters.
Mutable → we can modify the content.
Thread-Safe → synchronized, so multiple threads can use it safely.
Slower compared to StringBuilder because of synchronization.
StringBuffer
a StringBuffer is a mutable sequence of characters.
Mutable → we can modify the content.
Thread-Safe → synchronized, so multiple threads can use it safely.
Slower compared to StringBuilder because of synchronization.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)