What is the Main difference between String and
StringBuilder and why do we use StringBuilder.
Answer Posted / swati
In stringBuilder we can modify original value
example: suppose a string "Swti" in that string we add a
after charator w then we can easily add the char a after w
then new string is "Swati"
But in string we can't modify original value we add add
another value in original value use concate function.
example: suppose a string is "Swati" in that string we
concate another string means "Pandey" by using concate
function
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is difference between constants and readonly in c#?
List down the fundamental oop concepts?
What does immutable mean in c#?
What does void do in c#?
Is c# pass by value?
What is the difference between dynamic and var in c#?
What is the usage of Enumeration in C# Programming and is it good to use or not ?
how to print invert pyramid in c#
Is c and c# the same?
What is the purpose of namespace in c#?
What are the classes contained in a single .NET DLL ?
What is integer c#?
What is jagged array?
What is appdomain in c#?
How long does it take to learn c# for unity?