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
Why is the standalone environment only useful during the development process?
What are the differences between the response.write() and response.output.write()?
If you want to write your own dot net language, what steps you will you take care?
Can the validation occurs in server-side or client-side? If the validation occurs why should we do?
How can we Validate a Controls in ASP.NET page using JavaScript?
How about the security in Activex DLL and Activex EXE ?
What are validator? Name the validation controls in asp.net? How do you disable them?
What do you mean by query string?
What is simple data binding?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What is a url string?
Whats the difference between abstract factory pattern and factory pattern?
Difference between singleton and singlecall.
Explain what are webservices?
What is difference between session and viewstate?