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

Why is it called buffering?

1126


Add a value x to array from index l to r where 0 <= l <= r <= n-1

1095


You're given a Boolean 2D matrix, can you find the number of islands?

1111


Why vector is used in java?

1029


What is append function?

1007


What is return type in java?

1075


What is the difference between logical data independence and physical data independence?

1040


Is null or empty java?

991


Does anyone still use java?

1119


What happens if a constructor is declared private?

1036


How many threads can java run?

1119


Which keyword specify that a variable is effectively final ?

995


What is the difference between Grid and Gridbaglayout?

1248


How hashmap increases its size in java?

991


What is :: operator in java 8?

1027