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 do you mean by an object in java?
What is the use of join method?
Why is logger singleton?
What is a boolean flag in java?
What is double parsedouble in java?
Is java a compiler?
What are the differences between stringbuffer and stringbuilder?
Which keyword specify that a variable is effectively final ?
What is exception propagation?
What is run time allocation?
What is java basic concept?
How will you serialize a singleton class without violating singleton pattern?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is command line argument in java?
How do you create a sop?