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

class stringadd
{
public static void main(String args[])
{
String a="hello";
System.out.println("the string is::"+a);
a+=" govind";
System.out.println("after concating::"+a);
}
}

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by an object in java?

1184


What is the use of join method?

1086


Why is logger singleton?

1224


What is a boolean flag in java?

1083


What is double parsedouble in java?

1133


Is java a compiler?

1020


What are the differences between stringbuffer and stringbuilder?

1118


Which keyword specify that a variable is effectively final ?

1047


What is exception propagation?

1189


What is run time allocation?

1077


What is java basic concept?

1093


How will you serialize a singleton class without violating singleton pattern?

2005


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

1044


What is command line argument in java?

1221


How do you create a sop?

1046