Hey Guyz,
There are some difference between String, String Buffer and String Builder. We discuss String and its methods. We have some more methods in String buffer and Builder to modify strings.
String is immutable, if you try to alter their values, another object gets created, whereas StringBuffer and StringBuilder are mutable so they can change their values.
String, String Buffer and String Builder
String and String Buffer
String Buffer and String builder is almost the same (excepts 2-3 differences).
You can refer this site -- gives the proper difference between these terms.
String vs StringBuffer vs StringBuilder --- www.journaldev.com
No comments:
Post a Comment