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 class inherit from struct c#?
How can you access a private method of a class?
What are the 4 pillars of any object oriented programming language?
Does a class need a constructor c#?
What is the difference between const and static read-only?
In how many ways you can overload a method?
What are the Types of values mode can hold session state in web.config
Is java better than c sharp?
What is interface c#?
What is difference between override and new in c#?
Which namespaces are necessary to create a localized application?
How many static constructors are allowed in a class?
What do you mean by thread safe in c#?
Can derived classes have greater accessibility than their base types?
how dot net compiled code will become platform independent?