DEV Community

Ranjith Ranjith
Ranjith Ranjith

Posted on

String buffer

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.

Top comments (0)