java - toString() behavior of object when not overridden -


if tostring() method of class not overridden (or overloaded), , method returns string defined in class, happens when pass instance of class string expected?

if class extends object, result of object#tostring(), called. if class extends else, first #tostring in inheritance path.


Comments

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -