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

Answer Posted / naveen

prefer System.StringBuilder when you are doing lot of
string manuplation operations. In which case the same
string in the memory is manipulated for the resultant
operation where as when System.String variable is used
every time a new string instance is created in the memory

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c# and c same?

667


Can you instantiate an abstract class c#?

679


Is namespace a class?

658


What is garbage collection? How to force garbage collector to run?

701


Which of the following API is used to hide a window?

763


Why should you override the tostring() method?

766


What is monitor in C#?

776


In which way a two-dimensional array declared in C#?

686


What is short in c#?

735


What is console programming language?

691


Why can't we use a static class instead of singleton?

644


What is append in c#?

637


can you declare an override method to be static if the original method is not static?

757


What is string method in c#?

669


What are the new features in c# 2.0?

709