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:

 
Top Blogs