What is the basic and essential difference between Concatenate and Append
concat() method takes only one argument of string and concatenates it with other string. + operator takes any number of arguments and concatenates all the strings.
The concatenation of two or more numbers is the number formed by concatenating their numerals. For example, the concatenation of 1, 234, and 5678 is 12345678.
1 : a group of things linked together or occurring together in a way that produces a particular result or effect an unusual concatenation of circumstances George McGovern was the beneficiary, in 1972, of a unique concatenation of party reform and political accident.—
Concatenation doesn't impact cells but joins multiple values. For example, you can use this method to combine pieces of textual content from different cells. In Excel, such content is called text strings. You can also insert a number obtained from a formula in-between textual content.
"Concatenate" joins two specific items together, whereas "append" adds what you specify to whatever may already be there.
When use Concat
or append
on two strings they both may give you same result when you output them
but the
main difference is on using concatenation new string object is created where as its not the same in case of StrinBuffer APPEND()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With