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...

which class to use when concatenating
strings in a loop.

Answer Posted / narasimha

we any use the both classes String and StringBuffer.
but if we use StringBuffer it would be advatagebecase we
are going to create only one Object.if we use the String
class it is going to create the one for each itration.now
it up to you which one to use

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are data structures in java?

1028


What type of variable is error flag?

1125


Define how does a try statement determine which catch clause should be used to handle an exception?

1250


What is object cloning in Java?

1149


What are recursive functions?

1102


What is contract between hashcode and equal method?

1096


What is an example of procedure?

1106


What is bytecode verifier?

992


How does map works in java?

1050


What data structures are used to perform recursion?

1101


What class allows you to read objects directly from a stream?

1380


What invokes a thread's run() method in java programming?

1272


what is aggregation in java?

1073


What is character in data type?

1009


Why should we use singleton pattern instead of static class?

971