What is the key difference between StringBuffer and StringBuilder?
StringBuffer is thread-safe, StringBuilder is not
StringBuilder is synchronized, StringBuffer is not
StringBuffer is immutable, StringBuilder is mutable
StringBuilder consumes more memory than StringBuffer
This question is part of this quiz :
Java String Classes