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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!