StringBuilder in Java
StringBuilder was introduced in Java 1.5 (5.0). StringBuilder is mutable sequence of characters. This class is almost similar to StringBuffer, but with no guarantee of synchronization i.e. instances of StringBuilder are not safe in multithreaded environment. If such is the case then it is recommended that the StringBuffer is used. Avoiding the overhead of synchronization makes the StringBuilder very slightly faster.
January 3, 2008 | Filed Under Java
Related Post
Comments
Leave a Reply