String.toString

Returns a string representing the specified object.

Method of String

Syntax

toString()

Parameters

None.

Description

The String object overrides the toString method of the Object object; it does not inherit Object.toString. For String objects, the toString method returns a string representation of the object.

Examples

The following example displays the string value of a String object:

See also

Object.toString

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.