what is the difference between String and StringBuffer classes?
Answer Posted / 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 |
Post New Answer View All Answers
What are the 3 types of control structures?
Explain java coding standards for constants?
Can variables be used in java without initialization?
What is udp in java?
What is var keyword ?
Which is the best approach for creating thread ?
What does string intern() method do?
Can we store variables in local blocks?
Who developed java?
What is difference between printf and scanf?
Explain differences between collection api and stream api?
How do you sort a string in alphabetical order in java?
What is sleep method?
What is volatile data type?
Can you create an object of an abstract class?