Difference between String Stringbuilder Stringbuffer

Difference between String Stringbuilder Stringbuffer
* A String object is immutable.
* StringBuilder – Mutable. With no guarantee of Synchronization
* StringBuffer – Thread safe Mutable Object
Immutable objects cannot be modified once they are created.
Mutable objects can be modified after their creation.

No comments:

Post a Comment

comment on this post

Note: Only a member of this blog may post a comment.