What’s the difference between System.String and
System.Text.StringBuilder classes with example
Answer Posted / puneet mishra
according to me difference between a string class and using String Builder is that in using a string class you need to create new object befour appending it to the main string but in string builder class one don`t need to create object every time
Example for string builder class:
using System.Text;
stringBuilder str = new stringBuilder;
str.append("");
in the previous example once u create str as new instance of string builder class u just have to append every thing in to the string
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Can we have multiple threads in one app domain?
What is object type in c#?
How do I simulate optional parameters to com calls?
Explain the three test cases in unit testing?
How many bytes is a long c#?
What is int16?
What are variables in c#?
Is java better than c#?
What is strongly typed in c#?
In which way you can convert a value-type to a reference-type?
What is an array of arrays called?
What happens when thread sleep () method is called?
3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close
Can you inherit from a sealed class?
Explain the feature of c# language?