toString

This method provides a string representation of an instance. By default, it returns the "ClassFullName@hashInHexadecimal" (for example, "java.lang.Object@1a23b4f"). The part after the @ is not a memory address, so the default implementation is of limited practical use. It is useful to add a meaningful implementation even if it is not necessary for the program's logic, as it aids in debugging. A ready-to-use x.toString() call with null-check is already implemented in String.valueOf(x).