java

StringBuffer in Java

StringBuffer in Java is the pre class of string class. StringBuffer also allows us to handle String message but in mutable behavior. It means once we assign a string value using StringBuffer then after we can grow or shrink the length of the message by adding or removing something.