It was an interview question. I was asked to implement the StringBuffer append function. I saw the code after the interview. But I cannot understand how the operati
As others described, StringBuffer is mutable and it is implemented by using a char array. Operations in the StringBuffer are in-place operations.
More INFO can be available from the following link http://www.concentric.net/~ttwang/tech/jfastbuf.htm
It shows simple StringBuffer implementations using a char array.