Difference between String & StringBuffer
Answer Posted / tashu
1)String class is of fixed length, but stringbuffer class is
of variable length.
2)String class can't insert character or sub string in the
middle of string, but in Stringbuffer class this is possible.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is array a class?
What is the purpose of a default constructor?
What is jee6?
Can a final variable be null?
How does sublist works in java?
What is the history of java?
What is stack class in java?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
Is string is a keyword in java?
What is the difference between keyword and identifier?
What is immutability in java?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
Does garbage collection occur in permanent generation space in jvm?
What is the difference between a static and a non-static inner class in java programming?
What is literal example?