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...

how we can write the string concatenation program in java.

Answer Posted / sreekanth

public class StringConcat{
public static void main(String args[]){
String str1="abc";
String str2="def";
String str3=str1.concat(str2);
System.out.println(str3);
}}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use multi threading instead of multiprocessing?

1067


What is java and their uses?

1043


Is a method a procedure?

1056


what is the difference between the methods sleep() and wait()? : Java thread

976


What is the use of isempty in java?

1029


What is the difference between integer parseint and integer valueof?

1005


What is boolean law?

1069


What do you mean by ordered and sorted in collections in java?

997


What do you mean by synchronized non access modifier?

999


In a container there are 5 components. I want to display all the component names, how will you do that?

2192


Explain the features of interfaces in java?

983


State differences between C and Java?

1217


What is string made of?

961


What does sprintf return?

1066


Can you explain the usages of class.forname()?

1074