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

Can we write class inside a class in java?

973


What is difference between arraylist and list in java?

1081


What languages are pass by reference?

1044


What is a treeset in java?

1031


What is variable in java?

980


What is meant by stack and queue?

1063


How to store image in arraylist in java?

967


Can we inherit a class with private constructor?

1119


What is the file extension for java?

1066


Explain the importance of finalize() method.

963


What is the use of toarray () in java?

1061


What is rmi and steps involved in developing an rmi object?

1059


Can we use this () and super () in a method?

972


What is the purpose of assert keyword used in jdk1.4.x?

1055


Which is the best approach for creating thread ?

1205