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 collection class c#?
What is string [] args in c#?
What is an int c#?
Does c# support properties of array types?
What is the difference between integer and double?
How to find whether the application is run from inside ide or not?
Where is c# compiler located?
Is c# good for games?
What is difference between comparable and comparator?
What is an argument in c#?
To allow an element to be accessed using a unique key which .NET collection class is used ?
Can a sealed class be used as a base class?
What is meant by desktop application?
Explain about accessibility modifier 'protected internal'?
What operators can be used to cast from one reference type to another without the risk of throwing an exception?