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 stringBuffer and StringBuilder?

Answer Posted / srinu

StringBuffer:-
1)All methods in String Buffer class are Synchronized.
2)Performance is slow because these are synchronized.

StringBuilder:-
1)StringBuilder class methods are not synchronized.
2)performance is faster.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are JTA/JTS and how they used by client?

2211


Can you control when passivation occurs?

1049


What restrictions are placed on the values of each case of a switch statement?

999


Which javutil classes and interfaces support event handling?

1023


Difference between DurableSubscription and non- DurableSubscription?

2174


What classes of exceptions may be caught by a catch clause?

1017


Do we need to override service() method

1712


When a thread blocks on i/o, what state does it enter?

1079


How can I scroll through list of pages like the search results in google?

947


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

1034


Have you used threads in Servelet?

2499


What is metaspace?

1016


the same information whether it will connect to the database or it will be used previous information?

1025


Is the infobus client side only?

1096


What is the infobus?

1065