Question: Question 1a Which choice defines the interface I that has required method f? Question 1a options: A public interface I implements f; B public interface
Question 1a
Which choice defines the interface I that has required method f?
Question 1a options:
| A | public interface I implements f; |
| B | public interface I { public void f( ); } |
| C | public interface I requires f; |
| D | public interface I {f}; |
Question 1b
Which choice is the first line of a class A that implements the interface I?
Question 1b options:
| A | public class A interface I { |
| B | public class A implements I { |
| C | public interface I for class A { |
| D | public class A extends I { |
Question 1c
What is the required method of the Comparable interface?
Question 1c options:
| A | ltGt |
| B | compareTo |
| C | comparator |
| D | compare |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
