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

Is map ordered in java?

881


What is binary tree in java?

1004


What comes to mind when someone mentions a shallow copy in java?

1061


What is anti pattern in cyber security?

957


What two classes are used to read data only?

1034


What is protected in java?

948


What are the types of collections in java?

1001


What is the base class of all classes?

984


How can a gui component handle its own events?

1042


What is the byte order of byte buffer?

950


Can we convert stringbuilder to string in java?

936


what are the states associated in the thread? : Java thread

998


When will you define a method as static in Java?

994


How do you override a private method in java?

926


What is hash table in java?

940