Untitled Document

Subscribe here to get updates on new Videos

 

2. Differences between String and StringBuffer?

 

 

 

previoushomenext

 

Notes:

1. Once we creates a string object we can’t perform any changes in the existing object. if we are trying to perform any changes with those changes a new object will be created. this non changeable nature is nothing but immutability of the string object.

2. Once we creates a StringBuffer object we can perform any type of changes in the existing object. this changeble is nothing but mutability of the StringBuffer object.