Difference between String and StringBuilder class?

 Posted by Lakhangarg on 9/20/2009 | Category: .NET Framework Interview questions | Views: 7230
Answer:

the string class is immutable and therefore very inefficient if you need
to change it once it is constructed. For those cases, StringBuilder is
almost always a better choice. in case of string new object is create every time when we concate string.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response