Veena Pointi wrote:Can someone explain and trace how exactly toString method is called ?
According to the documentation for
String.valueOf(Object obj), if the argument is null, then a string equal to "null" [is returned]; otherwise, the value of obj.toString() is returned.