Whats the Difference between String and StringBuffer?

Showing Answers 1 - 6 of 6 Answers

Pradeep Reddy

  • Feb 18th, 2012
 

String class objects are immutable and hence their contents cant modified.String buffer class objects are mutable.methods that directly manipulate data also available in string buffer class.

  Was this answer useful?  Yes

cirrus

  • Feb 19th, 2012
 

The String class creates string objects that are not mutable. On the other hand, StringBuffer objects are mutable.

  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