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

Why are data types important?

535


What is use of inner class in java?

514


What is public/private protected in java?

541


Is arraylist dynamic in java?

516


What is integers and example?

486






Explain super keyword in java.

580


What is advantage of java?

538


What does this () mean in java?

543


Does java support Operator Overloading?

605


What is hotjava?

553


What is an accessor?

1044


Why map is used in java?

573


What is number data type?

530


Why string is called as immutable?

522


Add a value x to array from index l to r where 0 <= l <= r <= n-1

624