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
Why javac is not recognized?
What is string made of?
What was java originally called?
How many return statement are allowed in a function?
What does ide stand for?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What is public static?
Can vector have duplicates in java?
What is a numeric literal?
What happens when a thrown exception is not handled?
how its run?
Is there any limitation of using inheritance?
What is the basic concept of java?
What is an example of character?
How is the marker interface used in Java?