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

What is palindrome in java?

740


Is integer immutable in java?

738


How to sort array of 0 and 1 in java?

739


Is arraylist sorted in java?

721


How do you start a thread?

770


Where can I find jdk in my computer?

684


What do you mean by global variable?

706


who can i handle multiple client in RMI

1658


What is the string function?

745


Explain the difference between hashmap and hashtable in java?

710


How do you do exponents in java?

767


How to declare an arraylist in java?

697


How many static init can you have?

912


What is OOP Language?

840


What is the difference between static and global variables and also define what are volatile variables?

809