Possible Duplicate:
StringBuilder and StringBuffer in Java
I would like to know the difference between the StringBuilder and StringBuffer. In StringBuffer it automatically allocates 16 character. When we add a string "hello" its capacity is increased to 21. Could any one clarify my doubts?