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 this keyword in java?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
Does hashset allow duplicates in java?
How many types of java are there?
Why are the methods of the math class static?
What does singleton mean in java?
What is the difference between state-based unit testing and interaction-based unit testing?
Can we override constructor in java?
Tell us something about set interface.
What is the output of the below java program?
What is mean by encoding?
What is the purpose of the enableevents() method?
Which collections are thread safe in java?
When would you use a static class?
What is assembly language?