what is the difference between String and StringBuffer classes?
Answers were Sorted based on User's Feedback
Answer / kishore cheruku
a) String objects are constants and immutable whereas StringBuffer objects are not. b) String class supports constant strings whereas StringBuffer class supports growable and modifiable strings.
| Is This Answer Correct ? | 23 Yes | 0 No |
Answer / tarun choudhary
The String class is used for strings that are not allowed to change. The StringBuffer class is used for strings that may be modified by the program.
| Is This Answer Correct ? | 15 Yes | 0 No |
how can u handle run time exception in java? explain with brief explanation with examples?
List implementations of list interface?
Can vector have duplicates in java?
Can an object be null?
How to convert string to byte array and vice versa?
How can you share data between two thread in Java?
Which are thin and thicK wrapper Class's in Java?
Tell me the Importent classes in net package?
Which are different kinds of source code?
Is hashset ordered?
Difference between a MenuItem and a CheckboxMenuItem?
How variables are declared?