Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / guest

System.Text.StringBuilder contain may manipulation functions

Is This Answer Correct ?    6 Yes 0 No

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

Answer / prathaptpt

String Builder gives better performance the string if we
have series of string concatination operations

Is This Answer Correct ?    8 Yes 3 No

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

Answer / panchdev

stringbuilder:-
1-This class represents a string-like object whose value is a mutable sequence of characters.
2- The value is said to be mutable because it can be modified once it has been created by appending, removing, replacing, or inserting characters. For comparison, see the String class.
3-The default capacity for this implementation is 16, and the default maximum capacity is Int32.
string:-
1-A String object is called immutable (read-only) because its value cannot be modified once it has been created. Methods that appear to modify a String object actually return a new String object that contains the modification. If it is necessary to modify the actual contents of a string-like object, use the System.Text.StringBuilder class.

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More Dot Net Framework Interview Questions

what is Thread Priority?

2 Answers  


what is VSS? Where we are using?

3 Answers   TCS,


Is dapper better than entity framework?

0 Answers  


Is .net core replacing .net framework?

0 Answers  


How does .net framework works?

0 Answers  


Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?

0 Answers  


Explain bundle.config in mvc4?

0 Answers  


what is entity graph in entity framework?

0 Answers   Microsoft,


What is objectcontext? : Entity framework

0 Answers  


what is deferred loading(lazy loading)?

0 Answers   Microsoft,


Can we have enum in entity framework?

0 Answers   Microsoft,


Can you set the unlimited length for "maxjsonlength" property in config?

0 Answers  


Categories