Concat is used to add a string at the end of another string.But append() is used with String Buffer to append character sequence or string.
When we concatinate a string with another string a new string object is created. But in case of StringBuffer append() that is not the case.
When we concatinate a string with another string a new string object is created. But in case of StringBuffer append() that is not the case.
No comments:
Post a Comment