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


Please Help Members By Posting Answers For Below Questions

Who is using asp.net?

706


What is the full form of asp.net?

755


What is round trip in asp.net?

711


What is distributed system in asp.net?

792


What is the question mark in a url?

742


How does u call and execute a sp in .net?

764


How does session work in asp net?

805


Explain the difference between response.redirect vs server.transfer

897


Explain server-side scripting and client-side scripting.

716


What is the flow of processing of the request? : asp.net mvc

769


What is difference cookie and session?

772


When we use cookie less session? Explain its working?

781


What are the session variables?

741


What is a windows service?

800


Which is better asp.net or php?

775