What’s the advantage of using System.Text.StringBuilder
over System.String?
Answer Posted / jhansi
String..
1.Its a class used to handle strings.
2.Here concatenation is used to combine two strings.
3.String object is used to concatenate two strings.
4.The first string is combined to the other string by
creating a new copy in the memory as a string object, and
then the old
string is deleted
5.we say "Strings are immutable".
String Builder..
1.This is also the class used to handle strings.
2.Here Append method is used.
3.Here, Stringbuilder object is used.
4.Insertion is done on the existing string.
5.Usage of StringBuilder is more efficient in case large
amounts of string manipulations have to be performed
Is This Answer Correct ? | 40 Yes | 3 No |
Post New Answer View All Answers
Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?
What are the advantages of razor view engine?
Why should we go for entity framework?
Explain Sections is ASP.Net MVC?
What symbol would you use to denote, the start of a code block in razor views?
what is ssdl?
Can I add mvc testcases in visual studio express?
Explain what is asp.net mvc?
Name a few different return types of a controller action method?
What is .net framework & its benefits?
how to disable the lazy loading framework?
Difference between ASP.NET MVC and ASP.NET WebForms?
What are the 3 main components of an asp.net mvc application?
how do you truncate a table using entity data model?
Will there be a .net compact framework 3.0 release with release of .net framework 3.0?