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: