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
How many types of interfaces are there?
What are the special characters?
How do you reverse sort a list in java?
What is a dot notation?
What is the difference between Array and Hash Table?
What are the major drawbacks of external iteration?
Is node a data type in java?
What access modifiers can be used for variables?
What happens if main method is not static?
How many ways can we create the string object?
Can java run on google chrome?
What is a lambda expression ? What's its use ?
What is a prefix function.write down a code to compute prefix function.
How do you achieve polymorphism in java?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?