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
Who is using asp.net?
What is the full form of asp.net?
What is round trip in asp.net?
What is distributed system in asp.net?
What is the question mark in a url?
How does u call and execute a sp in .net?
How does session work in asp net?
Explain the difference between response.redirect vs server.transfer
Explain server-side scripting and client-side scripting.
What is the flow of processing of the request? : asp.net mvc
What is difference cookie and session?
When we use cookie less session? Explain its working?
What are the session variables?
What is a windows service?
Which is better asp.net or php?