Specifications
Sun Services
Java™ Programming Language
Module 6, slide 40 of 43
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
The toString Method
The toString method has the following characteristics:
• This method converts an object to a String.
• Use this method during string concatenation.
• Override this method to provide information about a
user-defined object in readable format.
• Use the wrapper class’s toString static method to
convert primitive types to a String.










