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
Can static method access instance variables ?
What does this () mean in java?
When should you make a function static?
How do you differentiate abstract class from interface?
Is treeset sorted in java?
What is meant by binding in rmi?
How can you generate random numbers in java?
what are Hostile Applets?
What are the actions that can occur when a thread enters blocked state?
Can a constructor be private and how are this() and super() method used with constructor?
Is empty string in java?
Does string is thread-safe in java?
explain local datetime api in java8?
How to perform binary search in java?
Is empty in java?