String vs StringBuffer vs StringBuilder

We know that, String is one of the most frequently used class in Java programming. Many java programmers are not aware of the fact that String is immutable in java which means every modification to a string creates a new String. Modification could be concatenation of string with other string or converting string to lower […]

Share this article on

StringBuffer

StringBuffer class in java is used to create thread safe mutable string. Mutable string means we can modify the string as many times as we want without creating a new string for each modification. This way we can save lot of memory. We know that String is immutable, when we do lot of modification to […]

Share this article on
< Previous Next >