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
Define delegation in .net?
Can we overload indexer in c#?
Can int be null in c#?
Why do we need collections in c#?
How to add controls dynamically to the form using c#.net.
What is the name of c# compiler?
Name the control which cannot be placed in mdi?
What is the base class in .net from which all the classes are derived from?
What is the difference between dynamic and var in c#?
How big is a 64 bit integer?
Is string nullable in c#?
What is thread pooling?
1. Describe page life cycle?
Define using statement in c#?
Can I do things in il that I can't do in c#?