toString() method on an object will print something.
Invoking toString() prints something
Invoking toString() does not produce any output
CorrectionHere is what's right.
Here is what's right.
toString() method does not cause any output. It simply returns a
This is related to a more general misunderstanding of “outputting” and “returning values”.