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 do you mean by buffering?

1046


What is java oops?

1086


Can a static method be overridden in java?

1021


What is a generic code?

1065


Difference between arraylist and vector.

1129


How is garbage collection controlled?

1171


Explain the importance of thread scheduler in java?

1017


What is t in parametric equations?

991


How do you get length in java?

1031


In a class implementing an interface, can we change the value of any variable defined in the interface?

1086


Can a class be private?

962


Difference between this() and super() in java ?

1080


How do you define a method?

978


How many types of array are there?

1008


What is the difference between a method and a function in alice?

1200