String object can not be changeed,but StringBuffer object can. When you want to change a String object( Example: use method replace('a','b')),in fact, it create a new String Object and return it to you.
Joined: Jul 21, 2003
in other words 'String' object are immutable while 'Stringbuffer' object are mutable.
- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. <br />- What truth? <br />- That there is no spoon!!!