Is there anything special in toString that makes it unique and more useful to override compared to just turning off the toString method and creating a separate method.
For example, the following codes. What is the advantage / disadvantage of the Override toString method? Both methods return the same result.
@Override
public String toString(){
return String.format("%s is a %s", "Apple", "fruit.");
}
public String newMethod(){
return String.format("%s is a %s", "Apple", "fruit.");
}
source
share