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
When is the finally clause of a try-catch-finally statement executed?
Give an example of call be reference significance.
Can we store variables in local blocks?
What is unicode in java?
What is meant by main method?
How destructors are defined in java?
Why java is made?
What are different access specifiers in java?
why are there separate wait and sleep methods? : Java thread
How many bits is a 64 bit byte?
what is mutual exclusion? : Java thread
How many tetrahedral voids are there in bcc?
Describe 2 different ways to concatenate two strings.
What is object cloning in Java?
Can a static class have a constructor?