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
How do you do a line break in java?
what is mena by object block any what is the use of that
What is meant by object?
What do you mean by aggregation?
What is illegal identifier in java?
What is the use of http-tunneling in rmi?
What is jvm? How its run?
When do we use synchronized blocks and advantages of using synchronized blocks?
What is mean by encoding?
What is getclass () getname () in java?
What is method reference?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
how to deploy tomcatserver to weblogic server? write d following steps?
How many arguments can a method have java?
What is boolean in java?