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



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

Answer / Rajesh Mathpal

"System.String is an immutable string class in .NET, meaning once a string is created, its contents cannot be changed. System.Text.StringBuilder, on the other hand, is a mutable version of a string that allows adding, removing, or modifying characters efficiently. StringBuilder provides better performance when working with strings that need frequent modifications."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

One application have three forms for registration .submit button is at third form.after filling three forms only u have to click submit button.After clicking the submit button all the values in first,second& third form saved on sql server.how to handle this situation .

6 Answers   TCS,


What is protected configuration?

1 Answers  


Compare and contrast between inline and code behind - which one is best?

2 Answers   Siebel,


What is difference in .net 1.1 and .net 2.0?

1 Answers  


Can I tap into other windows livetm services?

1 Answers  


Explain the main differences between asp and asp.net?

1 Answers  


How to create discussion forum in asp.net mvc? : Asp.Net MVC

1 Answers  


Explain authentication levels in .net ?

3 Answers  


What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

3 Answers   Satyam,


How do I publish my asp.net application to my isp's web server?

1 Answers  


What are the different types of validation controls in asp.net?

1 Answers  


What is the purpose of session management?

1 Answers  


Categories