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
Can we write class inside a class in java?
What is difference between arraylist and list in java?
What languages are pass by reference?
What is a treeset in java?
What is variable in java?
What is meant by stack and queue?
How to store image in arraylist in java?
Can we inherit a class with private constructor?
What is the file extension for java?
Explain the importance of finalize() method.
What is the use of toarray () in java?
What is rmi and steps involved in developing an rmi object?
Can we use this () and super () in a method?
What is the purpose of assert keyword used in jdk1.4.x?
Which is the best approach for creating thread ?