Compare String object with StringBuffer object.

Questions by kumarprc   answers by kumarprc

Showing Answers 1 - 16 of 16 Answers

Fazila

  • Jul 17th, 2007
 

We can change the value of string buffer object even after its creation. But, the string object once created cannot be modified but can be manipulated.

  Was this answer useful?  Yes

The String class implements immutable character strings, which are read-only once the string has been created and initialized, whereas the StringBuffer class implements dynamic character strings.

  Was this answer useful?  Yes

String objects are immutable in the sense once created cannot be changed, whereas StringBuffer object is mutable and  can be changed i.e it saves memory space

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions