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

class String
{
public static void main(String args[])
{
String s1="hai";
String s2="suresh";
String s3=s1.concat(s2);
System.out.println(s3);

}
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is classes in java?

897


What is a double vs float?

953


What is double parsedouble in java?

970


What is java basic concept?

980


How we can execute any code even before main method?

1088


Can we inherit a class with private constructor?

1070


What is java reflection?

932


What do you understand by copy constructor in java?

887


Can we overload the methods by making them static?

950


What is boolean logic?

975


How do you bind variables?

1032


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

1036


How does split work in java?

1001


What is string args [] in java?

984


Explain treeset?

1060