Provide the value of a string in the form of a string representation.
String |
The toString() method directly yields the original string.
While it might appear redundant, the purpose of this method is to enable code handling the string as a more generalized object to access its string value without necessitating a cast to the String type.
public |
Returns |
The object representing the string itself. |
Java Version |
Any |