Answer Posted / kanchan
String are read only and immutable. The StringBuffer class
is used to represent characters that can be modified.
StringBuffer is faster than String when performing simple
concatenations.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the list interface?
Why does java not allow multiple public classes in a java file ?
Why are the destructors for base class and derived class called in reverse order when the program exits
What is the technique adopted to create an immutable class?
What is == in java?
What causes memory leaks in java?
How can we make copy of a java object?
What is the collections api?
What is the final keyword denotes?
Differentiate between run time error and syntax error.
How do you add an element to a hashset in java?
Explain a few methods of overloading best practices in java?
What is the difference between the prefix and postfix forms of the ++ operator?
What is the difference between a break statement and a continue statement?
What is the purpose of the file class in java programming?