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 does viewstate work?
What is a web farm?
What does session_start () do?
What is http session state?
What is asp net theme?
How can we create pie chart in asp.net?
Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?
What does the .webpart file do?
How would you get asp.net running in apache web servers?
What is the default Orientation property in a Menu control?
What is the difference between mechine.config and web.config?
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?
Explain culture and uiculture values.
Define repository pattern in asp.net mvc? : asp.net mvc
In the Repeater control which way you can edit?