Qual é o uso de métodos de classe de objeto herdados na interface funcional, por exemplo, toString, é igual a
Eu encontrei o seguinte código, O que é uso dos métodos herdados equals () e toString ().
@FunctionalInterface
public interface FunInterface<T> {
// An abstract method declared in the functional interface
int test(T o1, T o2);
// Re-declaration of the equals() method in the Object class
boolean equals(Object obj);
String toString();
}