What is the difference between concat and append?

Discussion in 'Web Design' started by Jeff Mondoza, Jun 11, 2017.

  1. Jeff Mondoza

    Jeff Mondoza New Member

    Joined:
    Jun 1, 2017
    Messages:
    3
    Likes Received:
    0
    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 concatenate a string with another string a new string object is created.
    But in the case of StrinBuffer APPEND(), that is not the case.
     
  2. James_Kyn

    James_Kyn New Member

    Joined:
    Jun 2, 2017
    Messages:
    3
    Likes Received:
    0
    Concat is used to combine two string to produce a new object.In this method, the above two string spoil to produce the new string.Append is used with the StringBuffer, it has certain space the appended character are added.In this, no object can spoil.
     

Share This Page