Visit these links below to know the answer.
StringBuffer (Java Platform SE 7 )
StringBuilder (Java Platform SE 7 )