Which is the best way to use for String concatenation in
Java?

Answer Posted / sureshreddy

class String
{
public static void main(String args[])
{
String s1="hai";
String s2="suresh";
String s3=s1.concat(s2);
System.out.println(s3);

}
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the basic concept of java?

636


What are accessor methods in java?

632


What is the flag in java?

704


What is public/private protected in java?

651


What is the primitive type short?

682






How do I run java on windows?

631


What is bytecode verifier?

589


Write a program to find maximum and minimum number in array?

637


What are the files generated after using IDL to java compiler?

680


Difference between final and effectively final ?

722


What are locale settings?

645


What are internal variables?

666


List any five features of java?

676


What is methodological framework?

670


What is string intern in java?

643