StringBuffer is used to store character strings that will be changed (String objects cannot be changed). It automatically expands as needed. Related classes: String, CharSequence. StringBuilder was added in Java 5. It is identical in all respects to StringBuffer exceptContinue reading… Core Java: StringBuffer and StringBuilder