If I am printing an object of the class then it is printing the toString() method implementation even I am not writing the toString() method so wha
toString()
Everything inherits from Object, so the toString on Object will be called if you have not defined one.