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 is the biggest integer?
What do you mean by Hash Map and Hash Table?
How we create object in copy constructor?
What is stack example?
What are the types of methods in java?
How do you input a string in java?
Is there a way to increase the size of an array after its declaration?
Can you explain inner class.
What is method reference in java?
What is constructor chaining in java?
What is concurrent hashmap and its features?
Which collection is best for sorting in java?
What is hashmap in java?
Does the order of public and static declaration matter in main method?
What do you know about the garbage collector?