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 the use of a conditional inclusion statement in Java ?

1049


explain the concept of virtual method invocation in polymorphism in detail?

2164


how is final different from finally and finalize in java?

1001


What is the best definition for data?

930


What is java volatile?

970


Why main() method is public, static and void in java ?

1043


What is sorting algorithm in java?

1008


What do you mean by JVM?

1021


Is binary a low level language?

876


What are three advantages of using functions?

967


Can we call virtual funciton in a constructor ?

2144


Explain about exception propagation?

987


what are the states associated in the thread? : Java thread

1003


Is java hard to learn?

868


In case of inheritance what is the execution order of constructor and destructor?

1065