String and StringBuilder [Resolved]

Posted by Susanthampy under ASP.NET on 5/20/2011 | Points: 10 | Views : 2164 | Status : [Member] [MVP] | Replies : 2
What is the difference between String and StringBuilder?

Regards,
Susan



Responses

Posted by: Lakn2 on: 5/20/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
The main difference beween string and stringbuilder is that when we are copying two string in the case of string concatination is done means that one string is attached to another string and attaced string is deleted, and one new memory allocation is done.it takes lot of time and this is time taking process.


but in case of stringbuilder copying two stings means string1 is appended to string2 or vice versa.no memory allocation and deletion of string.So it is very efficient process and it takes less time.

Thanks&Regards
LakshmiNarayana Nalluri.

Susanthampy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 5/20/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi Lakn2,

Thank u for ur reply.........................

Regards,
Susan

Susanthampy, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response