Don't use StringBuffer any more; use StringBuilder.
String is used because its objects are immutable, so they can be reused without using too much memory, or threading problems.
StringBuilder is used because it gives a fast way of altering the contents of String-like text.