Interviews1 answer
What is the difference between string and string Builder?
1 Answer
String- string is immutable, immutable means if you create string object then you cannot modified it always create new object of string type in memory.
String Builder-it is mutable means if create string Builder object then you can perform any operation like insert, replace, or append without creating new instance for every time.
Pooja SinghPosted Jul 8, 2016, 12:27 PM EDT