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

hi All
Both are mutable ,that means we can change value of the
instance variable using append,insert and ...
But only one difference when you go for the multi-thread
concept you use StringBuffer,Because it is thread safe ,that
means, if one thread access this stringbuffer variable on
the time another thread cant access this stringbuffer,so
stringbuffer is slowest performance compare to stringbuilder.

by raju.j

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

5 Coding best practices you learned in java?

1059


Why is singleton class used?

1079


Will the jvm load the package twice at runtime?

1147


What is meant by design patterns?

1090


Explain tree set and its features?

1107


Define inheritance with reference to java.

1141


How finally used under exception handling?

985


Explain when noclassdeffounderror will be raised ?

1094


What are the benefits of java?

1180


What is the common usage of serialization? What exceptions occur during serialization?

1192


How many characters is 2 bytes?

1034


What is implicit object in java?

1123


Can static methods access instance variables in java?

1141


What is temp in java?

1056


What does this mean java?

1171