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

When is the finally clause of a try-catch-finally statement executed?

970


Give an example of call be reference significance.

982


Can we store variables in local blocks?

1304


What is unicode in java?

882


What is meant by main method?

997


How destructors are defined in java?

1120


Why java is made?

917


What are different access specifiers in java?

946


why are there separate wait and sleep methods? : Java thread

974


How many bits is a 64 bit byte?

998


what is mutual exclusion? : Java thread

964


How many tetrahedral voids are there in bcc?

1010


Describe 2 different ways to concatenate two strings.

1139


What is object cloning in Java?

1053


Can a static class have a constructor?

965