StringBuilder can be used instead of String and it provides most of the methods of String class. Since strings are immutable (they cannot be changed) so even when you change a single character in string the whole string gets recreated. Therefore if you need to do many string manipulations you should use StringBuilder class instead for performance reasons.

U Zafar
Software Engineer

Last edited by shabbir; 28Nov2011 at 21:46.. Reason: Confine links to signature