Please tell me a real time situation to compare String, StringBuffer, and StringBuilder?
String
StringBuffer
StringBuilder
Personally, I don't think there is any real world use for StringBuffer. When would I ever want to communicate between multiple threads by manipulating a character sequence? That doesn't sound useful at all, but maybe I have yet to see the light :)