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

Explain different types of thread priorities ?

1064


Differentiate between a constructor and a method? Can we mark constructors final?

1185


What is immutability in java?

1067


List the different types of classloaders in java.

962


State one difference between a template class and class template.

1060


What is the best way to findout the time/memory consuming process?

1021


Can we increase size of array?

1019


What is the difference between replace and replace all?

1007


What is space character in java?

1095


What is an example of declaration?

995


What is a line break example?

985


What is an object’s lock and which object’s have locks?

947


What is jvm? How its run?

1073


Mention a package that is used for linked list class in java.

951


Why strings in java are called as immutable?

980