An automatic call to the toString method

Whenever an object's reference is passed to either the print method or the println method,

The toString method always returns a reference to an object of the String class.

That string is printed by the print or println method.

File: dj.htm [Next] [Prev]