The only difference between StringBuffer and StringBuilder is StringBuffer is thread-safe, that is StringBuffer is synchronized. whereas StringBuilder is NOT thread-safe, that is StringBuilder is NOT ...
In java, string is basically an object that represents sequence of char values. An array of characters works same as java string. For example: char[] ch={'j','a','v ...