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
Tell me the difference between value passing and address passing?
What is dbcontext c#?
What is the difference between select and selectmany?
Where do we use static class in c#?
Explain what is the smallest unit of execution in .net?
What is mvc pattern in c#?
How do I open the console window?
What is response redirect in c#?
Why would you use untrusted verification?
What do you mean by thread safe in c#?
What is the difference between the debug class and trace class? Documentation looks the same.
What are All kind of access specifiers for a class and for methods
Why abstract class is not instantiated in c#?
Explain About Global.asax
What are the types of access modifiers?