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 singleton is not thread safe?
What is the properties class in java programming?
What is the static method?
Is a method a procedure?
Can an arraylist be empty?
What is not thread safe?
Can we define constructor in inner class?
Can we override data members in java?
Explain the difference between collection api and stream api in java8?
How do you use parseint in java?
What is connection class in java?
Can we create more than one object singleton class?
Which is faster call by value or call by reference?
How do you declare an empty string?
State one difference between a template class and class template.