If an object does not override the toString method, then the parent class toString method will be called. In this case, that would be the toString ()of the class Object, which in the API specifies: