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
Why are the methods of the math class static?
What is instanceof keyword?
What is the similarity between dynamic binding and linking?
How do you sort objects in java?
Is static a keyword in java?
Can you give names of Container classes?
What is array pointers ?
What is the default value of byte datatype in java?
What is use of inner class in java?
Will minecraft java be discontinued?
What is string buffer?
What is ternary operator in java?
What is the format specifier?
How can we create an immutable class in java?
What is the static block?