They are for different purposes. A StringBuffer is used when you want to insert/remove/splice/etc characters on the fly, something Strings can't do. A StringBuffer might be loosely thought of as an ArrayList of chars, since it can grow and shrink dynamically. A String can not change its size. HTH!
Joined: Aug 20, 2001
The String class is there for speed/performance. It does not carry the same overhead as a StringBuffer object.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.