Which is the best way to use for String concatenation in
Java?
Answer Posted / govind
class stringadd
{
public static void main(String args[])
{
String a="hello";
System.out.println("the string is::"+a);
a+=" govind";
System.out.println("after concating::"+a);
}
}
| Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
What is a parameter in java?
Why is multiple inheritance not supported in java?
What do u mean by variable?
What is a qms manual?
What do you mean by pointer value and address?
Explain different types of thread priorities ?
What is collection sort in java?
Is java map thread safe?
How many types of threads are there in java?
How many types of methods are there in java?
What is the purpose of object oriented programming?
What are the characteristics of Final,Finally and Finalize keywords.
Is there any difference between synchronized methods and synchronized statements?
What is a variable analysis?
What is the difference between access specifiers and access modifiers in java?