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

What exactly is methodology?

860


What is treeset and treemap in java?

1002


What is difference between static and final?

1010


What will happen to the exception object after exception handling?

944


In java, how many ways you can take input from the console?

929


Is arraylist dynamic in java?

929


what are Hostile Applets?

2016


What is continuity of a function?

1019


What technique can be employed to compare two strings?

1021


How are java objects passed to a method and what are native methods?

1021


Which list does not allow duplicates in java?

873


What is meant by 'Class access modifiers'?

981


Which one of the following suits the description of a string better: derived or primitive?

902


Where are global variables stored?

889


What is public static void main?

1038