I found this Q. in mock Exam
interface TestA {
String toString();
}
public class
Test implements TestA{
public static void main(String[] args){
System.out.println("hello");
}
}
If, we implement an interface, this is necessary that we implement methods of that interface. But here this not happening. Is this due to toString() method of Object class?