StringBuilder

StringBuilder is very similar to StringBuffer except for one important difference which is not synchronized. It means StringBuilder is not thread safe as methods inside StringBuilder class are not synchronised. StringBuilder is also mutable like StringBuffer. Mutable string means we can modify the string as many times as we want without creating a new string […]

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 >