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
What is the protected method modifier?
What is numeric data type?
What does += mean in java?
What does java final mean?
What is the purpose of garbage collection in java, and when is it used?
What is length in java?
Why is the singleton pattern considered to be an anti pattern?
What is a dynamic array in java?
Where is jre installed?
what is meant by abstract class?
Explain the use of volatile field modifier?
What is the difference between stored procedure & function?
What is a percentage sign called?
Is java based on c?
How do you sort data in java?