Hi all as the title already asks im working with Java i would like to know What is the difference is between String, StringBuilder, and StringBuffer in Java
String is immutable whereas StringBuffer and StringBuider are mutable classes. StringBuffer is thread safe and synchronized whereas StringBuilder is not, thats why StringBuilder is more faster than StringBuffer. String concat + operator internally uses StringBuffer or StringBuilder class.