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 we used break and continue statement in java?
Is 0 a prime number?
Is ruby built on java?
Can a static method be overridden in java?
Can we write multiple catch blocks under single try block?
What is polymorphism in java? What are the kinds of polymorphism?
What is reverse function?
what is nested class in java?
What is the use of hashmap in java?
Does substring start with 0?
Is singleton a bad practice?
What is a lightweight component?
What is an iterator interface in java programming?
What is a jagged array in java?
What is outofmemoryerror in java?