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
What is client side state management?
How do you remove duplicates without using remove duplicate stage?
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
how to transfer the file from client to server using asp.net
Why asp.net mvc is better than asp.net? : Asp.Net MVC
What does the .webpart file do?
Explain the difference between value type and reference type?
List the asp.net validation controls?
What is session in http request?
What is GAC in ASP.NET 2.0
How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.
What are session and cookies?
Explain asp.net page life cycle?
What is the use of placeholder control?
Why do we need master page in asp.net?