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 |
Why can't we make jsp as a controller and action servlet in struts?
What is stringbuffer in java?
What is the final access modifier in java?
Is string a wrapper class?
What is the use of parse function in java?
Is java is a fully object object oriented language?
What are constants?
define polymorphism in java
Why is the type for real numbers called double?
How can you sort dates?
Can you have two constructors in java?
How do you add an arraylist to an array in java?