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 difference between serializable and externalizable interface?
How to use string tokenizer class.
What is int lol?
What is the requirement of thread in java?
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent
What is Garbage Collection in Java
What is mean by exception?
How do you change an int to a string?
Why java is called not pure object oriented language?
What is the file type?
What are the 3 types of loops in java?
Why do we need data structure in java?
What is the difference between equals() and?
Is null a string or object in java?
Is string is a data type in java?