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
Can a dictionary have duplicate keys c#?
What is a class in unity?
How does bitwise work?
What is the difference between properties and indexer in c#?
In dynamic link library, which api is used for load library?
What is web forms in c#?
Is arraylist type safe in c#?
Which class comes after the SortedList class?
My switch statement works differently! Why?
Can u list some style properties of List Box?
Why we use extension methods in c#?
If dll and exe files are same it means you can deploy both the files in gac?
Is boxing an implicit conversion?
Is null in c#?
Explain the process of polymorphism with an example?