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 this keyword in java?

1031


What is the purpose of the wait(), notify(), and notifyall() methods in java programming?

1068


Does hashset allow duplicates in java?

1109


How many types of java are there?

969


Why are the methods of the math class static?

1064


What does singleton mean in java?

989


What is the difference between state-based unit testing and interaction-based unit testing?

931


Can we override constructor in java?

1084


Tell us something about set interface.

995


What is the output of the below java program?

1043


What is mean by encoding?

1071


What is the purpose of the enableevents() method?

1037


Which collections are thread safe in java?

918


When would you use a static class?

972


What is assembly language?

973