Announcement

Collapse
No announcement yet.

. What is the difference between concat and append?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • . What is the difference between concat and append?

    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.
    Asthijivak | Fat Cutter | Asthijivak Oil

  • #2
    Concat is used when adding a string to anything , it can be another string or an output with a string concated to it .
    Append is used for a specific content to be added at the end where ever it is used.
    Cymax Coupons | Target Coupons | Microsoft Coupons | Asos Coupons

    Comment


    • #3
      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.
      web designing company | web design company | website designing company

      Comment


      • #4
        Concat allows you to combine two string together and its only work on two strings. while Append appends a char or char sequence into a string.
        itil continual service improvement training itil service transition training itil certification itil foundation training c programming Python training

        Comment


        • #5
          concat():


          The string has concat method, remember string is immutable.
          It adds a string to another string.
          It will create the new object after concatenation done since it is immutable.


          append():


          StringBuilder and StringBuffer have append method, remember these two are mutable.
          It appends a char or char sequence to a string.
          It will not create a new object since it is a mutable one.
          How to sell handicrafts online

          Comment


          • #6
            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.
            Best Seo Course seo courses online

            Comment


            • #7
              Concat is used to add the string at the end of another string and append() is used with string buffer to append the character sequence or string.

              Comment

              Working...
              X