.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

what is stringbuilder?

Posted By :Mallikarjuna Chigicherla     Posted Date :August 08, 2010    Points :10   Category :ASP.Net 
String Builder:
================
StringBuilder is ideal for appending, removing, replacing, or inserting characters. This size of your string can be modified dynamically, no need to set a size during declaration.

Common usage of StringBuilder would be concatenating string values, replacing values in a string e.g Replacing all occurances of ' with ''


Here We can see More By following this link:
------------------------------------------------
http://msdn.microsoft.com/en-us/library/system.text.stringbuilder%28VS.71%29.aspx

You can also find related Interview Question to what is stringbuilder?  below: 

What's the advantage of using System.Text.StringBuilder over System.String?

  
StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it's being operated on, a new instance is created. (More...)

difference between string and StringBuilder?

  
String is immutable & StringBuilder is mutable.
Means we can add, remove or append the words in stringbuilder but not in string. And stringbuilder have larger range of storing than string. (More...)

What's the advantage of using System.Text.StringBuilder over System.String?

  
StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it's being operated on, a new instance is created. (More...)

What's the advantage of using System.Text.StringBuilder over System.String?

  
StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it's being operated on, a new instance is created. (More...)

Difference between System.String and System.StringBuilder classes?

  
-- System.String is immutable; System.StringBuilder can have mutable string where a variety of operations can be performed. (More...)

What is the difference between string and stringbuilder?

  
Objects of type stringBuilder are mutable, whereas objects of string are immutable (More...)

What is the difference between String and StringBuilder?

  
When we use string object ot concatenate two strings , the first string is concatenate to the other string by creating a new copy in the memory as string object , and the old string is deleted , this process is very long so we say strings are immutable.SO we use string builder object where append method is used.
Stringbuilder is faster than string operation as copy is done at the same loication (More...)

Difference between String vs StringBuilder?

  
String Class
Once the string object is created, its length and content cannot be modified.
Slower
StringBuilder
Even after object is created, it can be able to modify length and content.
Faster (More...)

What is difference between System.String and System.StringBuilder classes?

  
String and StringBuilder classes are used to store string values but the difference in them is that String is immutable (read only) by nature, because a value once assigned to a String object cannot be changed after its creation. When the value in the String object is modified, a new object is created, in memory, with a new value assigned to the String object. On the other hand, the StringBuilder class is mutable, as it occupies the same space even if you change the value. The StringBuilder class is more efficient where you have to perform a large amount of string manipulation. (More...)

What's the advantage of using System.Text.StringBuilder over System.String?

  
StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time a string is changed, a new instance in memory is created. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend