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 the difference is between execute, execute Query, execute Update?
What is flag in python?
Can you give few examples of final classes defined in java api?
What are format specifiers in java?
What is data and its types?
What does index mean in java?
What is meant by structural programming?
Name four container classes.
Can we have 2 main methods in java class?
What is the latest version of java?
Is void a type?
What is the driver class?
What is try-with-resources in java?
How many types of gc are there in java?
What is meant by singleton class?