Question: If you are asked to implement the following interface in a Java class MyClass: public interface mySecondInterface { void method1(String s); String method2(int i, String
If you are asked to implement the following interface in a Java class "MyClass":
public interface mySecondInterface {
void method1(String s);
String method2(int i, String s);
}
What is the minimum number of methods that need to be implemented in the class "MyClass" ?
| 3 |
| 4 |
| 1 |
| 5 |
| There is no minimum because a Class is implementing an Interface |
| 2 |
| None of the answers are correct |
| 0 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
