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 StrinBuffer APPEND() that is not the case.
Concat is used to combined two string to produce a new object.In this method the above two string spoil to produce new string.Append is used with the StringBuffer, it have certain space the appended character are added.In this no object can spoil.
concat method is for String class and it creates new String object having value as one string added at the end of another one, while append method is for StringBuffer. it updates the same StringBuffer object and its value becomes: second string appended at the end of first string.
Write a java standalone program / method to take out all the special characters in the string provided below. //ASCII a ? z (97 ? 122) String sSENTENCE = ?This!is^a$t*e)s|t?;