Objects First With Java - Solutions

Jun 16, 2006 ... The toString() is implemented in the class Object from the Java library. The Object class is always a superclass of all other classes. Hence, when you execute it is the toString as defined in the class Object that will be called and the return value assigned to the String s.

part of the document