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
Why for each loop is used?
design an lru cache in java?
How does enum work in java?
What is difference between iterator access and index access?
Explain the difference between hashmap and hashtable in java?
Explain the difference between arraylist and linkedlist in java?
How do constructors use this() and super()?
how to create daemon thread in java?
What is composition in java?
What is sizeof () operator?
Difference between linkedlist and arraylist.
Explain runtime exceptions?
Define an enumeration?
What is array length in java?
List types of storage classes in java?