First page Back Continue Last page Graphics
More About Strings
There is a toString() method that is defined for all objects
It is a standard practice for standard and programmer-defined subclasses to redefine toString() to return a string appropriate for the class's type
In expressions in which a string is expected but not found Java will automatically call the appropriate class's toString() method: