Dot Net Framework Question:
Download Questions PDF

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

Answer:

String..
1.Its a class used to handle strings.
2.Here concatenation is used to combine two strings.
3.String object is used to concatenate two strings.
4.The first string is combined to the other string by
creating a new copy in the memory as a string object, and
then the old
string is deleted
5.we say "Strings are immutable".

String Builder..
1.This is also the class used to handle strings.
2.Here Append method is used.
3.Here, Stringbuilder object is used.
4.Insertion is done on the existing string.
5.Usage of StringBuilder is more efficient in case large
amounts of string manipulations have to be performed

Download Dot Net Framework Interview Questions And Answers PDF

Previous QuestionNext Question
When i am using Ajax controls (update panel), Is page events all are executed or only some events are executed? which page events are executed?can we change the page layout in ASP.NET 2.0 as grid layout like in the previous version?