What's the advantage of using System.Text.StringBuilder over
System.String?

Answer Posted / abhinay kumar

stiringbuilder is mutable but string is immutable

i.e mutable means that if we define a variable with
stringbuilder and assigne the value to another
stringbuilder variable and if we change the value then the
reflaction will be seen on the both variable (it made
change on the same memory location reference)

immutable means if we define a variable with string and
assigne the value to another string variable and if we
change the value then the reflaction will not be seen on
the both variable

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the features of asp net?

724


If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

810


What is the difference between GridView and Repeater controls in ASP.NET?

816


What are the namespaces used in asp.net mvc? : asp.net mvc

741


Define caching.

840


What are the differences between code behind and code inline?

735


is gateway for sms continue connected for sending sms.how?

2061


What are directives in asp.net?

711


What is the difference between page-level caching and fragment caching?

750


What does aspcompat="true" mean?

768


What is difference in .net 1.1 and .net 2.0?

799


What are standard controls?

714


What does mean by a neutral culture?

824


What is a page life cycle? What are the events in a page life cycle?

693


What is the difference between application state and caching?

773