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
How do you take thread dump in java?
What is nullpointerexception?
What is the difference between reader/writer and inputstream/output stream?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
What is final method in java?
What string is utf8?
What is the base class for error and exception?
What is implicit object in java?
What is main function purpose?
What is regex in java?
Does constructor return any value?
Is void a return type?
What are different access specifiers in java?
What is the difference between arraylist and hashset in java?