adspace


What is the difference between the string and stringbuffer classes?

Answer Posted / Md Ataul Mustafa

String and StringBuffer are both used to represent sequences of characters in Java, but there are differences between them. Strings are immutable (once created, they cannot be changed), while StringBuffers are mutable (they can be modified after creation). Additionally, String objects are constant and final, whereas StringBuffer is a class that provides methods for manipulating strings.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category