menu
Ask
search
brightness_auto
more_vert
What is StringBuffer? What is difference between String and StringBuffer?
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

1 Answer

more_vert
 
verified
Best answer
The StringBuffer is a class which is alternative to the String class. But StringBuffer class is more flexible to use than the String class. That means, using StringBuffer we can insert some components to the existing string or modify the existing string but in case of String class once the string is defined then it remains fixed. The StringBuffer and the StringBuffer are almost one and the same. The StringBuffer or StringBuilder have three constructors and 30 methods.
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
This community is for Every Learner to help each other and ask doubts .

155 questions

134 answers

53 comments

148 users

...