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 is difference between String buffer and String builder?

Answer Posted / subhareddy

There is no much difference between string buffer and string
builder.only thing is all the methods available in string
buffer class are synchronized methods.and the method
available in string builder class are non-synchronized methods.
If we want thread safety then we have to go for string
buffer ,but performance goes down.if we don't want thread
safety the we can go for string builder

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

982


Explain different forms of polymorphism?

1143


What is a finally block? Is there a case when finally will not execute?

1065


Is integer immutable in java?

981


What is null mean in java?

1085


What is n in java?

943


What is the difference between break and continue statements?

1033


What is parseint?

1009


Explain listiterator and methods in listiterator?

1010


Explain about member inner classes?

1093


Differentiate between the constructors and methods in java?

941


Can a hashset contain duplicates java?

974


what do you mean by marker interface in java?

977


which class is the wait() method defined in? : Java thread

939


Can a set contain duplicates?

948