Thursday, 27 July 2017

Differences between String and StringBuffer

Once we create a string objects we cannot perform any changes in the existing object. If we try to perform any changes with those changes a new object will be created. This non changeability nature is nothing but immutability of the string.

Once we create a StringBuffer we can perform any type of changes in the existing object. This changeability nature is nothing but mutability of the StringBuffer object.

If you like the post, please comment, share the post and do like me on Facebook.

Thanks & Regards,
Susanto Paul