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's the difference between a static method and a non static method c#?
what is the difference between .dll and .exe
Does c# support a variable number of arguments?
What is the use of main method in c#?
What is difference between for and foreach loop in c#?
Why objects are stored in heap in c#?
What is datareader c#?
Why we use dll in c#?
Are all methods virtual in c#?
What do you mean by string objects are immutable?
Explain how to parse a datetime string?
What does protected internal access modifier mean?
Explain how can you clean up objects holding resources from within the code?
What is unmannaged code and will CLR handle this kind of code or not .
What is desktop example?