i am sorry..but i cant get the source of the code because it was given to me by one of my friends and he is not in contact with me...if get to meet or contact him.. i shall ask him about this question... thanks for your suggestion... i shall see to that its implemented./// thanks once again...
Um, all methods of StringBuffer are synchronized, so it is "thread-safe" - well, more than StringBuilder is anyway. However this is irrelevant because the StringBuffer is held only in a local variable, and there is no possible way for more than one thread to access that same StringBuffer at a time. This is the way StringBuffer is usually used, which is why StringBuilder is usually preferred - it offers the same functionality, an may be slightly faster.
"I'm not back." - Bill Harding, Twister
I've been selected to go to the moon! All thanks to this tiny ad: