StringBuilder is a mutable sequence of characters and this class is compatible with StringBuffer, but with no guarantee of synchronization. This class is designed for use as a drop-in replacement for StringBuffer in places where the string buffer was being used by a single thread (as is generally the case). Where possible, it is recommended that this class be used in preference to StringBuffer as it will be faster under most implementations.
Instances of StringBuilder are not safe for use by multiple threads. If such synchronization is required then it is recommended that StringBuffer be used.
The methods and usage of them in
Java StringBuffer , Java StringBuffer length() And capacity() Methods, Java StringBuffer ensureCapacity() Method With Example, Java setLength() Method In StringBuffer Class, Java charAt() And setCharAt() Methods in StringBuffer, StringBuffer getChars() Method In Java With Example, Java append() Method In StringBuffer, Java StringBuffer insert() Method With Example, Java StringBuffer, reverse() - Reverse A String In Java, Java delete() and deleteCharAt() Methods In StringBuffer, Java StringBuffer replace() Method With Example, Java substring and Additional StringBuffer Methods In Java .
StringBuilder = Merit
THINGS TO TRY