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


Please Help Members By Posting Answers For Below Questions

Is java programming easy?

758


How do you compare arrays in java?

719


How do you add an arraylist to an array in java?

741


How big is a boolean?

815


What is object in java?

777


Is null a string?

775


What is java ceil?

799


design an lru cache in java?

766


What is += mean in java?

785


Why we use multi threading instead of multiprocessing?

799


Explain the difference between static and dynamic binding in java?

841


Can you make a constructor final?

800


What is vector?

782


What are loops in java? What are three types of loops?

803


How to convert string to byte array and vice versa?

810