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
How many bytes is a string?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
How many bits is a 64 bit byte?
What are the different tags provided in jstl?
Give reasons supporting that string is immutable.
How do you use spaces in java?
When is the arraystoreexception thrown?
What is a concrete classes? Is Java object class is concrete class?
Can we change the value of static variable?
Why generics are used in java?
How do you clear a method in java?
Explain static nested classes ?
Is sizeof a preprocessor?
Where to store local variables?
Does java vector allow null?