String vs StringBuilder in C#

preview_player
Показать описание
String is immutable, Immutable means if you create string object then you cannot modify it and It always create new object of string type in memory.

Points to take from concept:
-----------------------------------------------------------------------------------------------------------
Objects of String are immutable, and objects of StringBuffer and StringBuilder are mutable.
StringBuffer and StringBuilder are similar, but StringBuilder is faster and preferred over StringBuffer for single threaded program
Рекомендации по теме