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

How many bytes is 255 characters?

984


What happens to a static var that is defined within a method of a class?

1033


What does flagged out mean?

1061


how is final different from finally and finalize in java?

1058


Is java free for commercial?

922


What is OOP's Terms with explanation?

1187


What is break and continue statement?

1095


Explain how hashmap works?

1063


Is heap stored in ram?

964


How do you identify independent and dependent variables?

1008


How many tetrahedral voids are there in bcc?

1096


Can an interface extend another interface?

1055


What is foreach loop in java?

1018


Explain about core java?

1123


What does file separator do in java?

1016