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

Can an interface have a class?

956


What will happen to the exception object after exception handling?

949


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

901


why Interface used?

956


Can inner class have constructor?

1000


What is difference between length and length() method in java ?

946


What are different types of states exist for a thread?

969


List the different types of classloaders in java.

931


What is the difference between variable declaration and variable initialization?

987


What is the program compilation process?

1039


Are registers volatile?

895


List the features of java programming language.

978


What does I ++ mean?

1008


How will you reverse a singly-link list?

954


How to sort an array from smallest to largest java?

949