Click here to Skip to main content
16,005,316 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
What is the difference between string and string builder.
Can any one tell the advantages and disadvantages for this.
Posted

The top of my article, StringBuilderPlus, explains some of the differences. Basically, StringBuilder is mutable and String is immutable, so StringBuilder can be faster when combining many Strings.
 
Share this answer
 
Comments
Nish Nishant 11-Aug-10 19:02pm    
Reason for my vote of 5
Propose as answer.
Basically, the StringBuilder class is more efficient than the String class when making many modifications to the string in question. I don't have enough knowledge to explain it further, sorry.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900