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 many characters is 2 bytes?
Name container classes in java programming?
Explain importance of finally block in java?
Give me some null interfaces in java?
Differentiate between stringbuffer and string?
What is method overriding in java ?
What is oop principle in java?
What is the purpose of abstract class?
Explain java coding standards for constants?
What is return in java?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
What are the different types of inner classes?