What is the difference between System.String and
System.StringBuilder classes?

Answer Posted / mukesh

System.String is immutable. If your programe is going
concate more then two string then String class can do this
work easily but decrease programe funcationlity. This is
because when you are concate string that time it takes a
new momory allocated. But when you are using StringBuilder
then there is no new memory allocation.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Illustrate namespaces in c#?

723


What is the use of ienumerable?

646


How do I type a whitespace character?

729


What is as keyword in c#?

760


Can an exception be thrown from a catch block?

751


What is action c#?

666


How many types of constructors are there in c#?

635


What are collections in c#?

660


Explain the 3 types of properties in c# with an example?

732


the c# keyword .int. Maps to which .net type?

926


Can we overload indexer in c#?

664


What is namespace explain with example?

614


Does c# replace c++?

795


What is difference between int and int in c#?

641


Define satellite Assembly?

744