What is the Main difference between String and
StringBuilder and why do we use StringBuilder.
Answer Posted / amit chaudhary
String and stringbuilder both methods are used to handle the
strings . the main differece between them in string
everytime a object has to be created for Operations like
append,Insert etc. at runtime but in case of stringbuilder
we can operate operations on same object. means the string
method is mutable and stringbuilder method is immutable
| Is This Answer Correct ? | 15 Yes | 20 No |
Post New Answer View All Answers
What is void in c#?
Are constructors inherited c#?
Does c# support c type macros?
What is data hiding in c#?
How do you serialize in c#?
Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!
What is the difference between disposing of () and finalize() methods in c#?
What type is string in c#?
What is the delegate in c#?
How do you implement thread synchronization in c#?
What is Dependency of Injection?
Explain anonymous type in c#?
How do I start a program in c#?
How do you read an Excel sheet in C#?
What is the difference between // comments, /* */ comments and /// comments?