StringBuffer class and it's methods
StringBuffer class in java : StringBuffer supports a modifiable string. StringBuffer class is used to create mutable string. --->StringBuffer represents growable and writable character sequences. --->StringBuffer class is thread safe.i,e multiple threads can't access at same time. --->StringBuffer creates strings of flexible length that can be modified in terms of both length and content. --->StringBuffer is a peer class of String. --->StringBuffer may have characters and substrings inserted in the middle or appended to the end. --->StringBuffer will automatically grow to make room for such additions and often has more characters preallocated than are actually needed, to allow room for growth. --->It is available in java.lang package. StringBuffer Constructors : StringBuffer defines these four constructors: 1.StringBuffer( ) : The default constructor (the one with no parameters) reserves room for 16 characters without reallocation. 2.StringBuffer...