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
What is base class of .net?
Explain the difference between or and orelse?
what are the ihttphandler and ihttphandlerfactory interfaces ?
Explain what are webservices?
Describe paging in asp.net?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
How does session work in asp net?
Can you explain composite pattern?
How does session authentication work?
Name the namespace which is used by ado.net?
Can you explain the importance of finalize method in .net?
What is %20 in a url?
What do you mean by serialize and marshalbyref?
What are user controls?
What is difference between cache and session?