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

What are the parts of methodology?

740


Can a static class have a constructor java?

725


What are variable names?

709


What is the set interface in java programming?

827


What is difference between variable declaration and definition?

731


What is string in java? String is a data type?

762


How do you create a first line indent?

724


How do you add an element to a set in java?

763


What is the difference between sleep and wait in java?

711


How many boolean functions are there?

722


Does collectionutils isempty check for null?

1108


What is runtime locatable code?

1118


Which sorting algorithm is best in java?

741


Which is better stringbuilder or stringbuffer?

704


List some oops concepts in java?

784