Hema, The BIG difference is that String objects are immutable (can't be changed) while StringBuffer objects are mutable (can be modified). If your application requires making a slight modification to the value of an existing string or expanding an existing string, you might consider StringBuffer. If you use String, a new String object must be constructed every time you want to make a change to the string. [ June 26, 2002: Message edited by: Jon Huhtala ]
- Jon Huhtala, SCPJ2<p> "Nothing worthwhile is ever easy..."