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

Explain the importance of import keyword in java?

1058


What is meant by singleton class?

1078


Can static methods access instance variables in java?

1142


How is hashset defined in java?

1087


Is list thread safe in java?

963


Which class should you use to obtain design information about an object in java programming?

1132


Explain different types of thread priorities ?

1132


Is special character in java?

1136


What is the byte range?

1074


Describe method overriding

1178


What is the difference between an argument and a parameter?

1036


How do you include a string in java?

1055


How objects of a class are created if no constructor is defined in the class?

1121


Can we overload the main() method?

1097


What is the difference between integer parseint and integer valueof?

1047