StringBuffer
is like a string, but it is mutable. I.e, it can be modified.
StringBuffer is final, so it can't be extended.
String
Buffer is thread safe. The necessary methods in StringBuffer are
synchronized.
Every
string buffer has a capacity. Whenever the characters in string
reaches the capacity, the capacity automatically made larger.
No comments:
Post a Comment