Difference between the String and StringBuffer classes?
Answers were Sorted based on User's Feedback
Answer / anitha
yes, String is a immutable that means once the string
object is created it cannot be changed.
String Buffer: it is a mutable,this object is changed if we
make any modifications.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / sathya
String class is immutable i.e oncle created the value
cannot chage.
Stringbuffer class is mutable.The value can change.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / 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 |
What is dynamic binding?
What are the topics in advance java?
Describe string intern() methodology
Explain about object oriented programming and its features?
How to calculate the length of a singly linked list in java?
where to use join method and explain with real time senario?and programatical explenation also..
What is the difference between size and length in java?
how do you store phone numbers using java collections
Is singleton class thread safe?
What is the class in java?
what is the use of declaring constructor as private?
5 Answers Cyient, IVY Technologies, Sai Softech, Virtusa,
Implement a stack with push (), pop() and min() in O(1) time.