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
Why to use nested classes in java?
How do you override a method in java?
Is there any case when finally will not be executed?
Can vector have duplicates in java?
How are variables stored in memory?
What is an class?
How can we run a java program without making any object?
What are voids?
What is compareto?
What is nested loop? What is dangling else condition in it?
What are the fileinputstream and fileoutputstream?
When is the arraystoreexception thrown?
Can an interface extend a class?
Does isempty check for null?
Which is the class in java?