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 are satellite assemblies? How will you get the different language strings?
What are circular references?
How to use exception handling in stored procedure?
What is meant by generics in c#?
Can I get the name of a type at runtime?
Why would you use a class property in c#?
Why use a singleton instead of static methods?
What are properties in C#?
How can an inner class access the members of outer class?
What is addressof operator?
C# called c sharp why?
i want the csharp questions&answeres
What are primitive types in c#?
Distinguish between system.string and system.text.stringbuilder classes?
What is concrete class in c#?