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 is the common usage of serialization? What exceptions occur during serialization?

1060


How do you use wildcards?

992


What does the three dot emoji mean?

1060


What is meant by tab pans?

1148


How do you format in java?

956


Can an interface be defined inside a class?

1015


How do listeners work?

990


Can we convert list to set in java?

926


How do you read and print a string in java?

920


Why do we need hashmap in java?

1043


What is protected in java?

956


What is the default execution method in java?

1142


Is java a prime method?

945


What are the different data types in java?

957


What is OOP Language?

1026