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 use of a conditional inclusion statement in Java ?
explain the concept of virtual method invocation in polymorphism in detail?
how is final different from finally and finalize in java?
What is the best definition for data?
What is java volatile?
Why main() method is public, static and void in java ?
What is sorting algorithm in java?
What do you mean by JVM?
Is binary a low level language?
What are three advantages of using functions?
Can we call virtual funciton in a constructor ?
Explain about exception propagation?
what are the states associated in the thread? : Java thread
Is java hard to learn?
In case of inheritance what is the execution order of constructor and destructor?