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 is the common usage of serialization? What exceptions occur during serialization?
How do you use wildcards?
What does the three dot emoji mean?
What is meant by tab pans?
How do you format in java?
Can an interface be defined inside a class?
How do listeners work?
Can we convert list to set in java?
How do you read and print a string in java?
Why do we need hashmap in java?
What is protected in java?
What is the default execution method in java?
Is java a prime method?
What are the different data types in java?
What is OOP Language?