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 tree in java?

907


What are the features in java?

1067


What is a method vs function?

1029


Can you use this() and super() both in a constructor?

973


Which number is denoted by leading zero in java?

1237


What is the purpose of final keyword and when to use it?

997


What is the char data type?

993


How do you empty a list in java?

966


define polymorphism in java

1082


How we can execute any code even before main method?

1130


What is the use of a copy constructor?

984


What is a boolean flag in java?

1021


What is treeset and treemap in java?

1063


How many tetrahedral voids are there in bcc?

1084


Is java pass by value or pass by reference?

977