What is difference between system.string and system.stringbuilder classes?



What is difference between system.string and system.stringbuilder classes?..

Answer / Arpita Gupta

System.String is an immutable class representing a sequence of characters, while System.Text.StringBuilder is a mutable character-based object that can be used to efficiently build or manipulate strings. StringBuilder provides methods for appending, inserting, and deleting characters in a string.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What are the Project related questions generaly asked in the interview. Mail to: ana_net1@yahoo.com

2 Answers   TCS,


Explain me what is .net web service?

1 Answers  


String[] a = new string[10] for(i=0; i<10; i++) { a[i] = i; } How many heap object will be created for this array. Choose the answer below. Ans: 1, 10, 11, 12

6 Answers  


State the methods used during deserialization and serialization process.

2 Answers  


What is exception handling?

1 Answers   Amazon,


What are the providers available with VS.NET ?

2 Answers   TCS,


How does the generational garbage collector in the .net clr manage object lifetime? What is non-deterministic finalization?

1 Answers  


Differences between namespace, class, assembly?

1 Answers  


How inheritance works in .net?

1 Answers  


What method do you use to explicitly kill a users session? How?

1 Answers  


Describe the use of following com+ services jit activation, queued components, object pooling.?

1 Answers  


What is the use of design pattern?

1 Answers  


Categories