Which is the best way to use for String concatenation in
Java?
Answer Posted / harshal
'+'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.
But performanace wise "append" is better than "+".
Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
what is the purpose of the runtime class?
What is the use of private static?
How do you write a conditional statement?
What is a method vs function?
How to sort elements in a parallel array in java?
How do I get 64 bit java?
What is the meaning of I ++ in java?
what is the final keyword denotes in java?
Can memory leak happen java?
Explain about interthread communication and how it takes place in java?
Difference between concurrent hashmap and hashtable and collections
What is the use of isempty in java?
Is java util list serializable?
What is a literal coding?
Can a class have multiple subclasses?