What is the difference between system.text.stringbuilder and system.string?



What is the difference between system.text.stringbuilder and system.string?..

Answer / Yuvraj Singh

System.String is an immutable string class, meaning once created, its content cannot be changed. System.Text.StringBuilder is a mutable alternative that can be resized dynamically as you add or remove characters.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the difference between TypeOf and GetType?

4 Answers   Syntel,


What is Nullable Type in c#

5 Answers   IBM,


How do I trim a space in c#?

1 Answers  


Can we inherit a class with private constructor in c#?

1 Answers  


What is class method c#?

1 Answers  


What is the data encapsulation?

1 Answers  


Can you inherit from multiple classes in c#?

1 Answers  


What are delegate methods?

1 Answers  


How is the syntax written to inherit from a class in C#?Give an example ?

1 Answers   Siebel,


What is Fragmentation and its Types?

1 Answers   MCN Solutions,


Explain the various types of classes used in c#?

1 Answers  


What is code verification?

1 Answers  


Categories