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
Why we use multi threading instead of multiprocessing?
What is java and their uses?
Is a method a procedure?
what is the difference between the methods sleep() and wait()? : Java thread
What is the use of isempty in java?
What is the difference between integer parseint and integer valueof?
What is boolean law?
What do you mean by ordered and sorted in collections in java?
What do you mean by synchronized non access modifier?
In a container there are 5 components. I want to display all the component names, how will you do that?
Explain the features of interfaces in java?
State differences between C and Java?
What is string made of?
What does sprintf return?
Can you explain the usages of class.forname()?