What is StringBuilder? Explain how it works ?
StringBuilder objects are like String objects, except that they can be modified.
The StringBuilder works by maintaining a buffer of characters (Char) that will form the final string. Characters can be appended, removed and manipulated via the StringBuilder, with the modifications being reflected by updating the character buffer accordingly. An array is used for this character buffer.