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 |
describe synchronization in respect to multithreading? : Java thread
Explain enumeration in java?
What are pass by reference and pass by value?
What is the difference between menuitem and checkboxmenu item?
What is a final class in java?
Define how destructors are defined in java?
What is the difference between a method and a procedure?
What is super keyword explain with example?
what is object-oriented programming in java?
What is meant by collection in java?
What is polymorphism and what are the types of it?
What for read() function?