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
Can an object be null?
Explain the difference between serializable and externalizable in java?
What is dynamic binding(late binding)?
What are extraneous variables examples?
What are the actions that can occur when a thread enters blocked state?
What is the dot operator?
What is the difference between double and float variables in java?
How does a for loop work?
Why do we use string?
What is a loop java?
What is parsing and its types?
What is meant by singleton class?
What are the two types of exceptions in java? Which are the differences between them?
Is ruby built on java?
what do you understand by the term string with respect to java?