What's the advantage of using System.Text.StringBuilder over
System.String?
Answer Posted / article
Hi..
Mutable & Immutable
1)string is immutabel.
i.e. whenever you create any changes to a string a new
object is created in memory.
2)StringBuilder has advantage String
To overcome this the stringBuilder is provided we can make
ammendments to the stringBuilder object without creating a
new object. Therefore whenever a lot operations are to be
made on a string then StringBuilder should be used in place
of String.
Thank's
Pradhan Prasanta Kumar
http://globaltouch.in
Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
Explain the difference between Web Garden and Web Farm?
Explain login controls.
Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?
What is page request in asp.net?
If you want to bind the columns manually within the asp:datagrid tags what kind of tags you have to add.
Define tracing.
What is the purpose of master page?
What is Web API?
What’s difference between “optimistic” and “pessimistic” locking?
Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc
How we implement web farm and web garden concept in asp.net?
What is authorization in asp.net?
What is the full form of asp.net?
A Web Service Can Only Be Written In .net. Is it True??
What is mta?