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
Is java programming easy?
How do you compare arrays in java?
How do you add an arraylist to an array in java?
How big is a boolean?
What is object in java?
Is null a string?
What is java ceil?
design an lru cache in java?
What is += mean in java?
Why we use multi threading instead of multiprocessing?
Explain the difference between static and dynamic binding in java?
Can you make a constructor final?
What is vector?
What are loops in java? What are three types of loops?
How to convert string to byte array and vice versa?