toString() method

Method to return the serialized string representation of the object.

Syntax

String toString ()

Returns

a string representing the serialized object.