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
What is the basic concept of java?
What are accessor methods in java?
What is the flag in java?
What is public/private protected in java?
What is the primitive type short?
How do I run java on windows?
What is bytecode verifier?
Write a program to find maximum and minimum number in array?
What are the files generated after using IDL to java compiler?
Difference between final and effectively final ?
What are locale settings?
What are internal variables?
List any five features of java?
What is methodological framework?
What is string intern in java?