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
How big is a pointer?
What are the two main uses of volatile in Java?
How many characters is 2 bytes?
What is the difference between == and === javascript?
What is passing by reference in java?
Which method cannot be overridden in java?
What is set in java?
What are the drawbacks of singleton class?
Is array serializable java?
What are the new features in java 8? Explain
What are design patterns and please explain?
what is meant by abstract class?
Is logger a singleton?
Why string is called as immutable?
What data structures are used to perform recursion?