Difference between the String and StringBuffer classes?
Answer Posted / latha
String is immutable and StringBuffer is mutable as most of
we know. In performance, StringBuffer is faster than the
String while performing simple concatenations.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Is space a character in java?
Why method overriding is used?
Explain the difference between an object-oriented programming language and object-based programming language?
What is the difference between @before and @beforeclass annotation?
What is the synonym of string?
When should you use arraylist and when should you use linkedlist?
Can we sort a map in java?
Can we use this () and super () in a method?
Why convert an applet to an application?
What do you mean by order of precedence and associativity?
What do you mean by synchronized non access modifier?
Can keyword be used as identifier?
When is the garbage collection used in Java?
Why you should not use singleton?
How will you print number in reverse (descending) order in BST.