What is the Main difference between String and
StringBuilder and why do we use StringBuilder.
Answer Posted / ashwini choudhari
string class u can't directly the change the string value
and u want to do some manipulation with the string object
then it's give the new memory in stack when u can the do
the manipulation with the string object but in String
Builder class not happened to give the new memory
allocation in stack it just repalcing the some part of
string which u want repalce or appended so that the
performances increases.
Actually String Builder it is referneces type .
| Is This Answer Correct ? | 11 Yes | 8 No |
Post New Answer View All Answers
What is Delegate and what is it used for ?
What is an escape sequence? Name some string escape sequences in c#.
What is throw in c#?
What is the main purpose of linq?
What is dbml file in c#?
What is collection of classes in c#?
What is the and operator in c#?
What are extensions in c#?
What is the use of system.environment class in c#.net?
Explain how is the dll hell problem solved in .net?
What is the difference between method parameters and method arguments. Give an example?
What is the use of command builder?
What is a boolean c#?
Explain about finalize method?
What is a partial class. Give an example?