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 |
if the memory capacity is 700 presently occupied by process is 690. then another process request space(40) how this situation handled in java.
describe method overloading
Can we force garbage collector to run ?
Can we override private method?
What is the difference between scrollbar and scrollpane?
What is java thread dump, how can we get java thread dump of a program?
What is use of inner class in java?
in a console we r giving java <class name> if r pressing enter where it'll goes
diff. b/w JAVA and javascript...
What do you mean by boolean?
Can a serialized object be transferred via network?
What are format specifiers in java?