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


Please Help Members By Posting Answers For Below Questions

What are different types of expressions?

764


How can constructor chaining be done using this keyword?

958


What is the difference between the size and capacity of a vector?

801


What is arraylist e in java?

754


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

10184


What is math in java?

844


How do you use nextline in java?

715


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.

1821


Why do we use return statement?

781


How can you set the applet size?

828


Explain the differences between static and dynamic variables?

872


What is the range of the short type?

797


What is implicit object in java?

825


What is difference between equal and == in java?

737


Difference between a class and an object?

782