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

Why is the standalone environment only useful during the development process?

1332


What are the differences between the response.write() and response.output.write()?

525


If you want to write your own dot net language, what steps you will you take care?

518


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

590


How can we Validate a Controls in ASP.NET page using JavaScript?

622






How about the security in Activex DLL and Activex EXE ?

1776


What are validator? Name the validation controls in asp.net? How do you disable them?

537


What do you mean by query string?

511


What is simple data binding?

509


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

531


What is a url string?

541


Whats the difference between abstract factory pattern and factory pattern?

593


Difference between singleton and singlecall.

563


Explain what are webservices?

533


What is difference between session and viewstate?

466