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 is a sessionfactory? Is it a thread-safe object?

1213


Difference between loadclass and class.forname?

1040


which type of objects reference will be given to client?

2478


Why are some of the class and element names counter-intuitive?

1137


What is the difference between static and non-static with examples?

1930


Explain the difference between object state and behavior?

1043


Is the infobus client side only?

1107


How would you reatach detached objects to a session when the same object has already been loaded into the session?

1198


Are we allowed to change the transaction isolation property in middle of a transaction?

1026


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

2415


Why a component architecture for the java platform?

1198


How database connectivity in XML is achieved?

2235


What are the different approaches to represent an inheritance hierarchy?

1066


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

1044


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

1035