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

How much is a java license?

931


What are JVM.JRE, J2EE, JNI?

1104


what is the swingutilities.invokelater(runnable) method for? : Java thread

1043


Is linkedlist thread safe in java?

1005


Can we extend immutable class?

995


How finally used under exception handling?

948


What is the purpose of stub and skeleton?

1034


What does exclamation mean in java?

1107


How does indexof work?

967


What is arrays sort in java?

967


How do you remove spaces in java?

1035


What do you understand by a Static Variable?

1217


How to set the permissions to a file in java?

989


List some java keywords sun like c, c + + keywords?

1004


What is better - 'bit-shift a value' or 'multiply by 2'?

1192