String And Stringbuffer Difference. At any point in time it contains some particular sequence of characters, but the length and content of the sequence can be changed through certain method calls. The basic difference is, string is immutable and each time we do any operation on string it creates a new string object.

The stringbuffer class is mutable. Stringbuffer is fast an consumes less memory when w concatenate t. It is a mutable class.