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

Answer Posted / prathap

StringBuilder is more efficient in the cases, where a lot of
manipulation is done to the text. Strings are immutable, so
each time it's being operated on, a new instance is created.

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is query string?

803


What is the difference between ASP Session State and ASP.Net Session State?

820


Is asp.net outdated?

747


What is the mvc framework?

772


What is the difference between union and structure?

743


Explain the difference between dataset and datareader.

783


Define machine.config in .net?

758


How does the iis work?

818


Is asp.net free?

778


What is anonymous authentication?

824


Why would anyone need to implement their own hashtable or linked list?

2698


What is application and session in asp.net?

729


Is data edited in the Repeater control?

812


How do http sessions work?

695


Explain the main differences between asp and asp.net?

757