JAVA

Difference between StringBuffer and StringBuilder

Based on my previous posts related to StringBuffer and StringBuilder let’s see the difference. StringBuffer StringBuilder StringBuffer was the only choice for String manipulation till Java 1.4 StringBuilder came into picture from Java 1.5. all of its public methods are synchronized all of its public methods are not synchronized StringBuffer provides Thread safety. StringBuilder Read more…

By Ashish, ago
JAVA

StringBuilder in Java

We will find answer for following questions What is StringBuilder Available Constructors Commonly used methods StringBuilder Java StringBuilder class is used to create mutable (modifiable) string. The Java StringBuilder class is same as StringBuffer class except that it is non-synchronized. So its not thread safe and can’t be used if Objects Read more…

By Ashish, ago