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

java - Static nested class instance -

Python Pandas join aggregated tables -

process - Python What is the difference between a Pool of worker processes and just running multiple Processes? -