This video explains implementation of toString() method.
If you want to represent any object as a string then toString() method comes into existence.
If you print objects, you will get hashcode values.
The toString() method returns the String representation of the object.
Since Java compiler internally calls toString() method, overriding this method will return specified values