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 is a heavyweight component?

979


What is identifier in java?

1027


What are byte codes?

1135


What do you mean by thread safe?

929


Is ruby built on java?

899


Write a java program to generate fibonacci series ?

1022


Why singleton is not thread safe?

945


What is supplier in java?

957


Is a string literal?

1004


How do you find the absolute value?

1003


When is an object subject to garbage collection?

995


What is a double?

1042


What is function declaration?

916


What is java util function?

1000


Where are local variables stored?

918