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 is the best way to use for String concatenation in
Java?

Answer Posted / leo zhao

Hi Manasa,

You can use append to concatenate more than 2 strings, such as

StringBuffer str = new StringBuffer("Stanford ");
str.append("Lost!!").append(" again.");

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why for each loop is used?

1067


design an lru cache in java?

1049


How does enum work in java?

1071


What is difference between iterator access and index access?

1112


Explain the difference between hashmap and hashtable in java?

994


Explain the difference between arraylist and linkedlist in java?

1028


How do constructors use this() and super()?

1186


how to create daemon thread in java?

1121


What is composition in java?

1343


What is sizeof () operator?

1032


Difference between linkedlist and arraylist.

1120


Explain runtime exceptions?

1242


Define an enumeration?

1095


What is array length in java?

1016


List types of storage classes in java?

1223