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
What is classes in java?
What is a double vs float?
What is double parsedouble in java?
What is java basic concept?
How we can execute any code even before main method?
Can we inherit a class with private constructor?
What is java reflection?
What do you understand by copy constructor in java?
Can we overload the methods by making them static?
What is boolean logic?
How do you bind variables?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
How does split work in java?
What is string args [] in java?
Explain treeset?