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
How to find out what version of asp.net I am using on my machine?
What is owin authentication?
What parameters can you pass in the url of the api?
What is autopostback in asp net?
What is meant by server side scripting?
What does it mean your session has timed out?
What is strong-typing versus weak-typing?
We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?
What is app_code folder in asp net?
Explain exception filters?
Describe the disadvantage of cookies.
What is masterpage?
List down the sequence of methods called during the page load.
What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?
How to create discussion forum in asp.net mvc? : Asp.Net MVC