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
Write a program to print count of empty strings in java 8?
difference between byte stream class and character stream class?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?
What does \ mean in regex?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
What are the different data types in java?
Explain about data types?
What is the instance of an object?
Can we have try block without catch block?
Does treeset use compareto?
What do you mean by multithreaded program?
which class is the wait() method defined in? : Java thread
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What is a get method?
Will set allow duplicates in java?