Which is the best way to use for String concatenation in
Java?
Answer Posted / sureshreddy
class String
{
public static void main(String args[])
{
String s1="hai";
String s2="suresh";
String s3=s1.concat(s2);
System.out.println(s3);
}
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Why is it called buffering?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
You're given a Boolean 2D matrix, can you find the number of islands?
Why vector is used in java?
What is append function?
What is return type in java?
What is the difference between logical data independence and physical data independence?
Is null or empty java?
Does anyone still use java?
What happens if a constructor is declared private?
How many threads can java run?
Which keyword specify that a variable is effectively final ?
What is the difference between Grid and Gridbaglayout?
How hashmap increases its size in java?
What is :: operator in java 8?