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 / harshal

'+'operator is the best way to concatenate bcz by using
this operator we can concatenate more than two strings.
This is not possible by using concat method.
But performanace wise "append" is better than "+".

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is callable java?

986


What is the size of an array?

1038


What does snprintf return?

1012


What does singleton class mean?

986


How to provide security in java

2285


What is map and hashmap in java?

1070


What are the disadvantages of object oriented programming?

1282


What is time complexity java?

998


How we can skip finally block of exception even if some exception occurs in the exception block in java?

953


What is style and indentation?

1016


How can we make string upper case or lower case?

1084


Is there a case when finally will not execute?

1012


Difference between error and exception

6069


Explain where variables are created in memory?

1017


Why does java not support pointers?

1114