What’s the advantage of using System.Text.StringBuilder
over System.String?
Answer Posted / jhansi
String..
1.Its a class used to handle strings.
2.Here concatenation is used to combine two strings.
3.String object is used to concatenate two strings.
4.The first string is combined to the other string by
creating a new copy in the memory as a string object, and
then the old
string is deleted
5.we say "Strings are immutable".
String Builder..
1.This is also the class used to handle strings.
2.Here Append method is used.
3.Here, Stringbuilder object is used.
4.Insertion is done on the existing string.
5.Usage of StringBuilder is more efficient in case large
amounts of string manipulations have to be performed
| Is This Answer Correct ? | 40 Yes | 3 No |
Post New Answer View All Answers
What are action filters?
what is split entity?
What is the use of display modes?
Can you explain model, controller and view in mvc?
Explain how you can send the result back in JSON format in MVC?
What is the need of Action Filters in ASP.Net MVC
What is entity framework used for?
What are the advantages of razor view engine?
How to use Jquery Plugins in ASP.Net MVC validation?
What are html helpers in asp.net mvc?
what is code first approach?
Where are the routing rules defined in an asp.net mvc application?
I have 2+ years of fake experience,actually i could not answer for project questions..?how can i answer please suggest me..?
What are the components of the .net framework.
What is disconnected scenario? : Entity framework