Respuesta :
The correct answer is: 'The toString method in Object is called.' If you don't explicitly write a ToString() method in your class, the ToString() method in the parent class is called. Your own 'ToString()' method would overload the parent Object 'ToString()' method.
Answer:
The toString method in Object is called.
Explanation:
toString method in a class is a special method that will be invoked when we try to use println() method to display the value of a class instance. toString method is usually used to show the current state of attribute in a class instance.
However, if there is no toString method defined in a class, the toString method in the parent class will be called. In Java, all classes are inherited from Object class and therefore the Object class is a parent class and its toString method will be invoked if the toString method is missing from its child class.