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
can java object be locked down for exclusive use by a given thread? : Java thread
Can you achieve runtime polymorphism by data members?
Is empty list java?
How do I enable java in safari?
Can arraylist contain null values?
What is the best way to findout the time/memory consuming process?
What is static keyword?
How is a structure different from array ?
Why are functions called methods in java?
How do you implement tree mirroring in java?
How can constructor chaining be done using this keyword?
What does n mean in java?
What are locale settings?
how to prepare for IT Officers Interview in Banks
When do we use synchronized blocks and advantages of using synchronized blocks?