toString does not apply to android. Its method is in the java Object class, which is a superclass of every java object. 'toString' is intended to return a textual representation of the object. This is usually overridden by java classes to create a user-readable string to represent this object.
, , . toString() , . "abc" + myObject 'toString' myObject "abc"
toString :
@Override
public String toString() {
return new StringBuilder()
.append("{Address:")
.append(" street=").append(street)
.append(", pincode=").append(pincode)
.append("}").toString();
}