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
Explain different types of thread priorities ?
Differentiate between a constructor and a method? Can we mark constructors final?
What is immutability in java?
List the different types of classloaders in java.
State one difference between a template class and class template.
What is the best way to findout the time/memory consuming process?
Can we increase size of array?
What is the difference between replace and replace all?
What is space character in java?
What is an example of declaration?
What is a line break example?
What is an object’s lock and which object’s have locks?
What is jvm? How its run?
Mention a package that is used for linked list class in java.
Why strings in java are called as immutable?