hai,
String:Is Used, when length of the string entered shouldnt change.
StringBuffer:Is used in case of varying length of string.