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 threads can java run?
How do you make an arraylist empty in java?
What is better- service oriented or batch oriented solutions?
In Java, what’s the purpose of static methods and static variables?
How many types of array are there?
What is the main method java?
What is use of super keyword?
What is collection class in java? List down its methods and interfaces.
What is data type modifier?
What is the Dictionary class?
What is autoboxing in java?
What is the immediate superclass of Menu?