Both the StringBuffer and StringBuilder classes are used to create mutable strings. But StringBuffer are synchronized, which means that only one task is allowed to execute the methods. 212 more words
Tags » StringBuilder
Problem is to reverse the string but keep the words same without using any inbuilt string methods.
Input: “I Am A Dotnet Developer”
Output: ” Developer Dotnet A Am I” 226 more words
String is an immutable object and The object created as a String is stored in the Constant String Pool.Every immutable object in Java is thread safe , that implies String is also thread safe . 133 more words
SBerry is back with little of her understanding in Equals methodLearn with SBerry
Object class provides public virtual bool Equals( Object obj). This method provides default equality comparison for all types irrespective of whether it is value type or reference type and it is inherited by default by every class. 672 more words