Top Categories
9.2 What is toString method in Java Example
- Category:
- Sub Category:
toString is defined inside Object class. toString() method is used java when we want a object to represent string. overriding toString() method will return the specified values. This method can be overridden to customize the String representation of the Object.