A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

StringBuffer

StringBuffer in java

What is StringBuffer in Java?

StringBuffer in Java:
It is a peer class of String that provides much of the functionality of the strings.
It is mutable in nature.
It may have characters and substrings inserted in the middle or appended to the end.
It is safe, since multiple threads as they are synchronised.


String represents fixed-length, immutable character sequence but StringBuffer represents growable and writeable character sequence. Constructors used in StringBuffer:

LEARN TUTORIALS

.

.