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
How much is a java license?
What are JVM.JRE, J2EE, JNI?
what is the swingutilities.invokelater(runnable) method for? : Java thread
Is linkedlist thread safe in java?
Can we extend immutable class?
How finally used under exception handling?
What is the purpose of stub and skeleton?
What does exclamation mean in java?
How does indexof work?
What is arrays sort in java?
How do you remove spaces in java?
What do you understand by a Static Variable?
How to set the permissions to a file in java?
List some java keywords sun like c, c + + keywords?
What is better - 'bit-shift a value' or 'multiply by 2'?