Category Archives: String Handling

Things to Know About toString() Method

The toString() method returns a textual representation of an object. toString() method belongs to java.lang.Object class and it can be overridden to any class to customize the String representation of the Object.
We used to override toString() method because its default implementation doesn’t provide much information but want to display objects in readable format.
Read more