On Aug 9, 5:33 am, ooostephen <[email protected]> wrote: > the lab titled 'DataTypePrintTest' creates a new Thread obj, and when > called its output is > Thread[Thread-0,5,main] > i wasn't able to understand the doc well enough to know what that > output means. of the three elements in the Thread array, the meaning > of the last two (, 5, main) remain unknown to me. i could guess, but > i'd like to *know* exactly what they mean. You should know by now that for an object the print/prinln methods uses the toString method of the object. So when you print a Thread, the print/println methods uses the toString method of Thread class. Now you can jump to javadoc class Thread and reads the toString method, you will know what it returns.
Generally speaking, get an habit to jump directly to javadoc. Michèle Garoche -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en
