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 listiterator and methods in listiterator?
What is purpose of keyword void?
What is the use of string and stringbuffer?
What does microservices mean?
What are the three parts of a lambda expression?
What is hashset in java?
Can a abstract class be declared final?
How can you say java is object oriented?
What are the features of junit?
Should a main method be compulsorily declared in all java classes?
What do you mean by an object in java?
What is toarray method in java?
If a class is declared without any access modifiers, where can the class be accessed?
What is a protected class in java?
What is difference between == equals () and compareto () method?