In the given question the method toString() is used that converts any value into a string. In this code two print method is used, that can be described as follows:
In the first method, object1 is created, which is used to print all object values.
In the second method, object1 uses the toString() method, which converts all values into a string, that's why the answer to this question is "True".
a lot of people use this as a way to keep things nice and safe, but sometimes thinks don’t go as planned. Don’t really know how else to answer this lol