The precise definition of equality can vary, depending on the type of objects being
compared. The toString( ) method returns a string that contains a description of the object
on which it is called. Also, this method is automatically called when an object is output
using println( ). Many classes override this method. Doing so allows them to tailor a
description specifically for the types of objects that they create.
Search WWH :
Custom Search
Previous Page
Java SE 6 Topic Index
Next Page
Java SE 6 Bookmarks
Home