Which is the best way to use for String concatenation in
Java?
Answer Posted / leo zhao
Hi Manasa,
You can use append to concatenate more than 2 strings, such as
StringBuffer str = new StringBuffer("Stanford ");
str.append("Lost!!").append(" again.");
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
What exactly is methodology?
What is treeset and treemap in java?
What is difference between static and final?
What will happen to the exception object after exception handling?
In java, how many ways you can take input from the console?
Is arraylist dynamic in java?
what are Hostile Applets?
What is continuity of a function?
What technique can be employed to compare two strings?
How are java objects passed to a method and what are native methods?
Which list does not allow duplicates in java?
What is meant by 'Class access modifiers'?
Which one of the following suits the description of a string better: derived or primitive?
Where are global variables stored?
What is public static void main?