SAP interview question

why we need string buffer if we have string and string builder in java?