Which is the best way to use for String concatenation in
Java?
Answer Posted / manasa
'+'operator is the best way to concatenate bcz by using
this operator we can concatenate more than two strings.
This is not possible by using concat method
Is This Answer Correct ? | 6 Yes | 22 No |
Post New Answer View All Answers
What are different types of expressions?
How can constructor chaining be done using this keyword?
What is the difference between the size and capacity of a vector?
What is arraylist e in java?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What is math in java?
How do you use nextline in java?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
Why do we use return statement?
How can you set the applet size?
Explain the differences between static and dynamic variables?
What is the range of the short type?
What is implicit object in java?
What is difference between equal and == in java?
Difference between a class and an object?